Стабилизация sync и логов: heartbeat антиспам + Connection Logs через rosettadev2
This commit is contained in:
@@ -885,11 +885,10 @@ class MessageRepository private constructor(private val context: Context) {
|
||||
unreadCount = dialog?.unreadCount ?: 0
|
||||
)
|
||||
|
||||
// 🔥 Запрашиваем информацию о пользователе для отображения имени вместо ключа
|
||||
// Desktop parity: always re-fetch on incoming message so renamed contacts
|
||||
// get their new name/username updated in the chat list.
|
||||
// 🔥 Запрашиваем информацию о пользователе для отображения имени вместо ключа.
|
||||
// Важно: не форсим повторный запрос на каждый входящий пакет — это создает
|
||||
// шторм PacketSearch во время sync и заметно тормозит обработку.
|
||||
if (!isGroupDialogKey(dialogOpponentKey)) {
|
||||
requestedUserInfoKeys.remove(dialogOpponentKey)
|
||||
requestUserInfo(dialogOpponentKey)
|
||||
} else {
|
||||
applyGroupDisplayNameToDialog(account, dialogOpponentKey)
|
||||
|
||||
Reference in New Issue
Block a user