fix(Chat): Allow receiving messages from non-contacts in 1-to-1 (#10698)
Close #10522
This commit is contained in:
parent
ae2e495a50
commit
24f09e9e96
|
@ -271,11 +271,6 @@ QtObject:
|
||||||
error "error: new message with an unknown chat type received", chatId=chatId
|
error "error: new message with an unknown chat type received", chatId=chatId
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Ignore 1-1 chats for which we are not contact
|
|
||||||
if(chats[i].chatType == ChatType.OneToOne and not self.contactService.getContactById(chatId).isContact):
|
|
||||||
continue
|
|
||||||
|
|
||||||
|
|
||||||
if self.chatService.getChatById(chats[i].id, showWarning = false).id == "":
|
if self.chatService.getChatById(chats[i].id, showWarning = false).id == "":
|
||||||
# Chat is not present in the chat cache. We need to add it first
|
# Chat is not present in the chat cache. We need to add it first
|
||||||
self.chatService.updateOrAddChat(chats[i])
|
self.chatService.updateOrAddChat(chats[i])
|
||||||
|
|
Loading…
Reference in New Issue