forked from upstream-mirrors/quik
use single function for synchronously obtaining contact
This commit is contained in:
@@ -30,7 +30,7 @@ open class Conversation() : RealmObject() {
|
||||
|
||||
Flowable.fromIterable(cursor.getString(ConversationColumns.RECIPIENT_IDS).split(" "))
|
||||
.map { id -> id.toLong() }
|
||||
.map { id -> contacts.getContact(id) }
|
||||
.map { id -> contacts.getContactBlocking(id) }
|
||||
.filter { contact -> contact.recipientId != 0L }
|
||||
.blockingSubscribe { contact -> this.contacts.add(contact) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user