Refix Event.source, JSONify dicts for ListModel

This commit is contained in:
miruka
2020-02-12 13:04:46 -04:00
parent ae780345e8
commit ce0a868579
9 changed files with 37 additions and 28 deletions

View File

@@ -64,8 +64,11 @@ HColumnLayout {
function json() {
const events = ModelStore.get(chat.userId, chat.roomId, "events")
return JSON.stringify(events.get(model.id), null, 4)
let event = ModelStore.get(chat.userId, chat.roomId, "events")
.get(model.id)
event = JSON.parse(JSON.stringify(event))
event.source = JSON.parse(event.source)
return JSON.stringify(event, null, 4)
}
function openContextMenu() {