Ignore delete chat updates if the room doesn't exist

This commit is contained in:
Tulir Asokan 2022-12-02 16:19:37 +02:00
parent 738ea1b943
commit 7c9746f5de

View file

@ -2615,6 +2615,9 @@ func (portal *Portal) HandleWhatsAppInvite(source *User, senderJID *types.JID, j
}
func (portal *Portal) HandleWhatsAppDeleteChat(user *User) {
if portal.MXID == "" {
return
}
matrixUsers, err := portal.GetMatrixUsers()
if err != nil {
portal.log.Errorln("Failed to get Matrix users to see if DeleteChat should be handled:", err)