Prefer last modified time over last message time

This commit is contained in:
Naveen 2022-10-08 20:50:49 +05:30
parent 6f07d6971a
commit 203f10618f
4 changed files with 28 additions and 15 deletions

View file

@ -16,4 +16,15 @@ data class Conversation(
@ColumnInfo(name = "is_group_conversation") var isGroupConversation: Boolean,
@ColumnInfo(name = "phone_number") var phoneNumber: String,
@ColumnInfo(name = "is_scheduled") var isScheduled: Boolean = false
)
) {
fun areContentsTheSame(other: Conversation): Boolean {
return snippet == other.snippet &&
date == other.date &&
read == other.read &&
title == other.title &&
photoUri == other.photoUri &&
isGroupConversation == other.isGroupConversation &&
phoneNumber == other.phoneNumber
}
}