forked from MirrorHub/mautrix-whatsapp
Remove special-cased private chat portal cleanup
This commit is contained in:
parent
1600559de7
commit
465ffa27af
1 changed files with 0 additions and 7 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue