Allow toggling of SIA integration, and direct user to play store if not installed

This commit is contained in:
Moez Bhatti
2018-04-06 02:32:39 -04:00
parent 956b8c2b8d
commit 137280403e
13 changed files with 119 additions and 44 deletions
@@ -91,14 +91,11 @@ class MessageRepositoryImpl @Inject constructor(
.findAll())
}
override fun getBlockedConversations(): Flowable<List<Conversation>> {
override fun getBlockedConversations(): RealmResults<Conversation> {
return Realm.getDefaultInstance()
.where(Conversation::class.java)
.equalTo("blocked", true)
.findAllAsync()
.asFlowable()
.filter { it.isLoaded }
.map { it.toList() }
}
override fun getConversationAsync(threadId: Long): Conversation {