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.
This commit is contained in:
miruka 2019-12-16 07:01:19 -04:00
parent 9da0b12e45
commit 5b4146c854
2 changed files with 1 additions and 2 deletions

View File

@ -48,7 +48,6 @@
- invisible uploaded mxc images? - invisible uploaded mxc images?
- first undecryptable message - first undecryptable message
- Adding an account with no rooms
- Join button 502 - Join button 502
- Leave box button focus - Leave box button focus

View File

@ -36,7 +36,7 @@ function onCoroutineDone(uuid, result, error, traceback) {
function onModelUpdated(syncId, data, serializedSyncId) { function onModelUpdated(syncId, data, serializedSyncId) {
if (serializedSyncId === ["Account"] || serializedSyncId[0] === "Room") { if (serializedSyncId === "Account" || serializedSyncId[0] === "Room") {
py.callCoro("get_flat_mainpane_data", [], data => { py.callCoro("get_flat_mainpane_data", [], data => {
window.mainPaneModelSource = data window.mainPaneModelSource = data
}) })