Browse Source

Remove special-cased private chat portal cleanup

Tulir Asokan 2 năm trước cách đây
mục cha
commit
465ffa27af
1 tập tin đã thay đổi với 0 bổ sung7 xóa
  1. 0 7
      portal.go

+ 0 - 7
portal.go

@@ -3529,13 +3529,6 @@ func (portal *Portal) Cleanup(puppetsOnly bool) {
 	if len(portal.MXID) == 0 {
 		return
 	}
-	if portal.IsPrivateChat() {
-		_, err := portal.MainIntent().LeaveRoom(portal.MXID)
-		if err != nil {
-			portal.log.Warnln("Failed to leave private chat portal with main intent:", err)
-		}
-		return
-	}
 	intent := portal.MainIntent()
 	members, err := intent.JoinedMembers(portal.MXID)
 	if err != nil {