From 2511a0304551b38ca4659236f73e94e741c7e0ee Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 19 Mar 2020 18:49:33 -0400 Subject: [PATCH] Fix event debug returning wrong event json --- TODO.md | 1 + src/gui/Pages/Chat/Timeline/EventDelegate.qml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index fa85bb2d..38894ac5 100644 --- a/TODO.md +++ b/TODO.md @@ -2,6 +2,7 @@ ## Before release +- page back buttons - Add Gentoo instructions - Finish the README.md - Build final AppImage and test media opening diff --git a/src/gui/Pages/Chat/Timeline/EventDelegate.qml b/src/gui/Pages/Chat/Timeline/EventDelegate.qml index 8535cf67..38d245a5 100644 --- a/src/gui/Pages/Chat/Timeline/EventDelegate.qml +++ b/src/gui/Pages/Chat/Timeline/EventDelegate.qml @@ -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)