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:
parent
842aab1324
commit
3ddf85763d
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user