fix: Update read receipt handling to prevent automatic sending and ensure user visibility before marking messages as read
This commit is contained in:
@@ -113,15 +113,15 @@ data class DialogEntity(
|
||||
interface MessageDao {
|
||||
|
||||
/**
|
||||
* Вставка нового сообщения
|
||||
* Вставка нового сообщения (IGNORE если уже существует)
|
||||
*/
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
@Insert(onConflict = OnConflictStrategy.IGNORE)
|
||||
suspend fun insertMessage(message: MessageEntity): Long
|
||||
|
||||
/**
|
||||
* Вставка нескольких сообщений
|
||||
* Вставка нескольких сообщений (IGNORE если уже существуют)
|
||||
*/
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
@Insert(onConflict = OnConflictStrategy.IGNORE)
|
||||
suspend fun insertMessages(messages: List<MessageEntity>)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user