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 {
case "join":
room.HasLeft = false
if c.config.AuthCache.InitialSyncDone {
c.ui.MainView().UpdateTags(room)
}
fallthrough
case "invite":
if c.config.AuthCache.InitialSyncDone {
c.ui.MainView().AddRoom(room)
}
case "leave":
case "ban":
if c.config.AuthCache.InitialSyncDone {
c.ui.MainView().RemoveRoom(room)
}