fix(contacts): Block unlimited counts of request contacts from create chat view

Fixes: #9485
This commit is contained in:
Boris Melnik 2023-03-03 15:28:13 +03:00
parent 1c53d1e9b9
commit c7e99365a1
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ MembersSelectorBase {
return
}
if (root.model.count === 0) {
if (root.model.count === 0 && !root.rootStore.contactsStore.hasPendingContactRequest(contactDetails.publicKey)) {
Global.openContactRequestPopup(contactDetails.publicKey,
popup => popup.closed.connect(root.rejected))
return