feat: Enhance account handling and message delivery status updates; improve UI feedback for saved messages
This commit is contained in:
@@ -368,6 +368,9 @@ class MessageRepository private constructor(private val context: Context) {
|
||||
// Обновляем кэш
|
||||
val dialogKey = getDialogKey(packet.toPublicKey)
|
||||
updateMessageStatus(dialogKey, packet.messageId, DeliveryStatus.DELIVERED)
|
||||
|
||||
// 🔥 КРИТИЧНО: Обновляем диалог чтобы lastMessageDelivered обновился
|
||||
dialogDao.updateDialogFromMessages(account, packet.toPublicKey)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -389,6 +392,9 @@ class MessageRepository private constructor(private val context: Context) {
|
||||
else msg
|
||||
}
|
||||
}
|
||||
|
||||
// 🔥 КРИТИЧНО: Обновляем диалог чтобы lastMessageRead обновился
|
||||
dialogDao.updateDialogFromMessages(account, packet.fromPublicKey)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user