From 5b4146c8543612cf2743b171bbeb08ab9782a2b4 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 16 Dec 2019 07:01:19 -0400 Subject: [PATCH] Fix main pane not updating on Account changes The pane only updated on Room model changes. If an account with no joined rooms was added, it would be invisible until a client restart. --- TODO.md | 1 - src/qml/event_handlers.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index 71be2357..b5ae0271 100644 --- a/TODO.md +++ b/TODO.md @@ -48,7 +48,6 @@ - invisible uploaded mxc images? - first undecryptable message -- Adding an account with no rooms - Join button 502 - Leave box button focus diff --git a/src/qml/event_handlers.js b/src/qml/event_handlers.js index 58c9029c..39a8b61c 100644 --- a/src/qml/event_handlers.js +++ b/src/qml/event_handlers.js @@ -36,7 +36,7 @@ function onCoroutineDone(uuid, result, error, traceback) { function onModelUpdated(syncId, data, serializedSyncId) { - if (serializedSyncId === ["Account"] || serializedSyncId[0] === "Room") { + if (serializedSyncId === "Account" || serializedSyncId[0] === "Room") { py.callCoro("get_flat_mainpane_data", [], data => { window.mainPaneModelSource = data })