Исправлены ложные галочки и синхронизация статусов сообщений
This commit is contained in:
@@ -400,10 +400,13 @@ interface MessageDao {
|
||||
@Query(
|
||||
"""
|
||||
UPDATE messages SET read = 1
|
||||
WHERE account = :account AND to_public_key = :opponent AND from_me = 1
|
||||
WHERE account = :account
|
||||
AND to_public_key = :opponent
|
||||
AND from_me = 1
|
||||
AND delivered IN (1, 3)
|
||||
"""
|
||||
)
|
||||
suspend fun markAllAsRead(account: String, opponent: String)
|
||||
suspend fun markAllAsRead(account: String, opponent: String): Int
|
||||
|
||||
/** 🔥 DEBUG: Получить последнее сообщение в диалоге для отладки */
|
||||
@Query(
|
||||
|
||||
Reference in New Issue
Block a user