Explorar el Código

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

Tulir Asokan hace 4 años
padre
commit
c811da6f7d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {