Working Event.event_type & source fields

This commit is contained in:
miruka
2020-02-11 17:17:11 -04:00
parent b992db9bfe
commit 8a29143b60
5 changed files with 15 additions and 37 deletions

View File

@@ -64,13 +64,8 @@ HColumnLayout {
function json() {
return JSON.stringify(
{
"model": ModelStore.get(chat.userId, chat.roomId, "events")
.get(model.id),
"source": py.getattr(model.source, "__dict__"),
},
null, 4)
const events = ModelStore.get(chat.userId, chat.roomId, "events")
return JSON.stringify(events.get(model.id), null, 4)
}
function openContextMenu() {