Browse Source

Ignore delete chat updates if the room doesn't exist

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

+ 3 - 0
portal.go

@@ -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)