updateLastReadMessage

open suspend fun updateLastReadMessage(contact: String, messageUuid: Long, lastReadTimestamp: Long)(source)

Atomically updates the last-read message pointer for contact, preserving the monotonic-timestamp guard: if lastReadTimestamp is not newer than the stored value, the method is a no-op. Creates the contact-settings row if absent. Uses INSERT OR IGNORE + conditional UPDATE instead of a read-then-@Upsert so the existing row's unrelated columns (muteUntil, filteringDisabled) are preserved without a Kotlin-side read-modify-write.