feat: simplify color handling in ChatsListScreen and improve gesture callbacks in SwipeableDialogItem
This commit is contained in:
@@ -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(
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user