Browse Source

Cleanup empty group portals even if user didn't leave WhatsApp side

Tulir Asokan 4 năm trước cách đây
mục cha
commit
c811da6f7d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      portal.go

+ 1 - 1
portal.go

@@ -2343,8 +2343,8 @@ func (portal *Portal) HandleMatrixLeave(sender *User) {
 			return
 		}
 		portal.log.Infoln("Leave response:", <-resp)
-		portal.CleanupIfEmpty()
 	}
+	portal.CleanupIfEmpty()
 }
 
 func (portal *Portal) HandleMatrixKick(sender *User, evt *event.Event) {