Fix event debug returning wrong event json

This commit is contained in:
miruka 2020-03-19 18:49:33 -04:00
parent 03251f019e
commit 2511a03045
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
## Before release
- page back buttons
- Add Gentoo instructions
- Finish the README.md
- Build final AppImage and test media opening

View File

@ -65,7 +65,7 @@ HColumnLayout {
function json() {
let event = ModelStore.get(chat.userId, chat.roomId, "events")
.get(model.id)
.get(model.index)
event = JSON.parse(JSON.stringify(event))
event.source = JSON.parse(event.source)
return JSON.stringify(event, null, 4)