diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-04-04 01:23:06 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-04-04 01:23:08 +0300 |
commit | 3ddf85763d6dfe8c5ddecf5022f571e93b9a2a63 (patch) | |
tree | aa8449fde9c34c7ff5ec8d7b9e1e8c95add5468b /matrix | |
parent | 842aab13243b0c14f20ae8a3a1d8501a33920501 (diff) |
Move room away from invites list when invite is accepted from other client
May not actually work, I didn't test it
Diffstat (limited to 'matrix')
-rw-r--r-- | matrix/matrix.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/matrix/matrix.go b/matrix/matrix.go index e7fbcc3..852a410 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -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) } |