feat: jump to oldest unread message upon opening a thread, display divider between read/unread (#3693)

This commit is contained in:
Mac DeCourcy 2025-11-14 11:03:46 -08:00 committed by GitHub
parent 427fb33e7e
commit 2a081f3c1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 1322 additions and 209 deletions

View file

@ -77,8 +77,9 @@ import org.meshtastic.core.database.entity.ReactionEntity
AutoMigration(from = 19, to = 20),
AutoMigration(from = 20, to = 21),
AutoMigration(from = 21, to = 22),
AutoMigration(from = 22, to = 23),
],
version = 22,
version = 23,
exportSchema = true,
)
@TypeConverters(Converters::class)

View file

@ -97,7 +97,12 @@ data class Packet(
@Suppress("ConstructorParameterNaming")
@Entity(tableName = "contact_settings")
data class ContactSettings(@PrimaryKey val contact_key: String, val muteUntil: Long = 0L) {
data class ContactSettings(
@PrimaryKey val contact_key: String,
val muteUntil: Long = 0L,
@ColumnInfo(name = "last_read_message_uuid") val lastReadMessageUuid: Long? = null,
@ColumnInfo(name = "last_read_message_timestamp") val lastReadMessageTimestamp: Long? = null,
) {
val isMuted
get() = System.currentTimeMillis() <= muteUntil
}