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:
parent
9da0b12e45
commit
5b4146c854
1
TODO.md
1
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
|
||||
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user