fix(Chat): Allow receiving messages from non-contacts in 1-to-1 (#10698)

Close #10522
This commit is contained in:
Mikhail Rogachev 2023-05-16 11:47:21 +04:00 committed by GitHub
parent ae2e495a50
commit 24f09e9e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -271,11 +271,6 @@ QtObject:
error "error: new message with an unknown chat type received", chatId=chatId
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 == "":
# Chat is not present in the chat cache. We need to add it first
self.chatService.updateOrAddChat(chats[i])