Remove special-cased private chat portal cleanup

This commit is contained in:
Tulir Asokan 2022-07-18 16:31:56 +03:00
parent 1600559de7
commit 465ffa27af

View file

@ -3529,13 +3529,6 @@ func (portal *Portal) Cleanup(puppetsOnly bool) {
if len(portal.MXID) == 0 { if len(portal.MXID) == 0 {
return 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() intent := portal.MainIntent()
members, err := intent.JoinedMembers(portal.MXID) members, err := intent.JoinedMembers(portal.MXID)
if err != nil { if err != nil {