Move room away from invites list when invite is accepted from other client

May not actually work, I didn't test it
This commit is contained in:
Tulir Asokan 2020-04-04 01:23:06 +03:00
parent 842aab1324
commit 3ddf85763d

View File

@ -579,12 +579,16 @@ func (c *Container) processOwnMembershipChange(evt *mautrix.Event) {
switch membership { switch membership {
case "join": case "join":
room.HasLeft = false room.HasLeft = false
if c.config.AuthCache.InitialSyncDone {
c.ui.MainView().UpdateTags(room)
}
fallthrough fallthrough
case "invite": case "invite":
if c.config.AuthCache.InitialSyncDone { if c.config.AuthCache.InitialSyncDone {
c.ui.MainView().AddRoom(room) c.ui.MainView().AddRoom(room)
} }
case "leave": case "leave":
case "ban":
if c.config.AuthCache.InitialSyncDone { if c.config.AuthCache.InitialSyncDone {
c.ui.MainView().RemoveRoom(room) c.ui.MainView().RemoveRoom(room)
} }