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

Filtering myself from create group contact list and securing optional on request popup

parent 4dc068ac
No related branches found
No related tags found
2 merge requests!40v1.1.2b166,!38Using new database structure
......@@ -44,6 +44,7 @@ final class CreateGroupViewModel {
init() {
session.dbManager.fetchContactsPublisher(.init(authStatus: [.friend]))
.assertNoFailure()
.map { $0.filter { $0.id != self.session.myId }}
.map { $0.sorted(by: { $0.username! < $1.username! })}
.sink { [unowned self] in
allContacts = $0
......
......@@ -258,7 +258,7 @@ extension SearchController {
spacingAfter: 20
)
var subtitleFragment = "Share your information with #\(contact.username)"
var subtitleFragment = "Share your information with #\(contact.username ?? "")"
if let email = contact.email {
subtitleFragment.append(contentsOf: " (\(email))#")
......
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