feat: simplify color handling in ChatsListScreen and improve gesture callbacks in SwipeableDialogItem

This commit is contained in:
2026-02-12 20:09:53 +05:00
parent ea537ccce1
commit e208ce050a
16 changed files with 419 additions and 365 deletions

View File

@@ -277,6 +277,10 @@ interface MessageDao {
)
suspend fun deleteMessagesBetweenUsers(account: String, user1: String, user2: String): Int
/** Удалить все сообщения аккаунта */
@Query("DELETE FROM messages WHERE account = :account")
suspend fun deleteAllByAccount(account: String): Int
/** Количество непрочитанных сообщений в диалоге */
@Query(
"""
@@ -492,6 +496,10 @@ interface DialogDao {
@Query("DELETE FROM dialogs WHERE account = :account AND opponent_key = :opponentKey")
suspend fun deleteDialog(account: String, opponentKey: String)
/** Удалить все диалоги аккаунта */
@Query("DELETE FROM dialogs WHERE account = :account")
suspend fun deleteAllByAccount(account: String)
/** Обновить информацию о собеседнике */
@Query(
"""