Skip to content
Snippets Groups Projects
Commit c107d729 authored by Bruno Muniz's avatar Bruno Muniz :apple:
Browse files

Fix issue where blocked contact group request still shakes device

parent 30292513
No related branches found
No related tags found
3 merge requests!71Releasing v1.1.5 (214),!69Implemented filtering for banned/blocked users and reporting,!67v1.1.5 b(203)
......@@ -251,6 +251,7 @@ extension Session {
contact.photo = nil
contact.isRecent = false
contact.marshaled = nil
contact.isBlocked = true
contact.authStatus = .stranger
contact.nickname = contact.username
_ = try? dbManager.saveContact(contact)
......
......@@ -460,6 +460,12 @@ public final class Session: SessionType {
return
}
if let contact = try! dbManager.fetchContacts(.init(id: [request.0.leaderId])).first {
if contact.isBanned || contact.isBlocked {
return
}
}
DispatchQueue.global().async { [weak self] in
self?.processGroupCreation(request.0, memberIds: request.1, welcome: request.2)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment