From 3ddf85763d6dfe8c5ddecf5022f571e93b9a2a63 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 4 Apr 2020 01:23:06 +0300 Subject: Move room away from invites list when invite is accepted from other client May not actually work, I didn't test it --- matrix/matrix.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'matrix') 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) } -- cgit v1.2.3