mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 17:13:11 +01:00
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 {
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue