Minor code consistency change

This commit is contained in:
Naveen 2022-11-18 01:45:17 +05:30
parent 9fbf6fa581
commit 89f378b973
3 changed files with 16 additions and 14 deletions

View file

@ -257,7 +257,7 @@ class MainActivity : SimpleActivity() {
}
cachedConversations.forEach { cachedConv ->
val conv = conversations.find { it.threadId == cachedConv.threadId && !cachedConv.areContentsTheSame(it) }
val conv = conversations.find { it.threadId == cachedConv.threadId && !Conversation.areContentsTheSame(cachedConv, it) }
if (conv != null) {
val conversation = conv.copy(date = maxOf(cachedConv.date, conv.date))
conversationsDB.insertOrUpdate(conversation)