feat: Implement automatic keyboard hiding on screen exit for improved user experience
This commit is contained in:
@@ -333,4 +333,20 @@ interface DialogDao {
|
||||
username: String,
|
||||
verified: Int
|
||||
)
|
||||
|
||||
/**
|
||||
* Получить общее количество непрочитанных сообщений, исключая указанный диалог
|
||||
* Используется для отображения badge на кнопке "назад" в экране чата
|
||||
*/
|
||||
@Query("""
|
||||
SELECT COALESCE(SUM(unread_count), 0) FROM dialogs
|
||||
WHERE account = :account AND opponent_key != :excludeOpponentKey
|
||||
""")
|
||||
fun getTotalUnreadCountExcludingFlow(account: String, excludeOpponentKey: String): Flow<Int>
|
||||
|
||||
/**
|
||||
* Получить общее количество непрочитанных сообщений
|
||||
*/
|
||||
@Query("SELECT COALESCE(SUM(unread_count), 0) FROM dialogs WHERE account = :account")
|
||||
fun getTotalUnreadCountFlow(account: String): Flow<Int>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user