mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-16 19:18:52 +01:00
Make sure that new conversations appear in list after creation
This commit is contained in:
@@ -170,6 +170,7 @@ class ConversationRepositoryImpl @Inject constructor(
|
||||
|
||||
override fun getConversation(threadId: Long): Conversation? {
|
||||
return Realm.getDefaultInstance()
|
||||
.apply { refresh() }
|
||||
.where(Conversation::class.java)
|
||||
.equalTo("id", threadId)
|
||||
.findFirst()
|
||||
@@ -195,6 +196,7 @@ class ConversationRepositoryImpl @Inject constructor(
|
||||
|
||||
override fun getThreadId(recipients: Collection<String>): Long? {
|
||||
return Realm.getDefaultInstance().use { realm ->
|
||||
realm.refresh()
|
||||
realm.where(Conversation::class.java)
|
||||
.findAll()
|
||||
.asSequence()
|
||||
|
||||
Reference in New Issue
Block a user