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:
		@@ -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)
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user