Фикс: бэкграунд звонки — аудио, имя на CallKit, deactivation order, UUID race

This commit is contained in:
2026-04-06 00:18:37 +05:00
parent d65624ad35
commit 55cb120db3
32 changed files with 1548 additions and 688 deletions

View File

@@ -288,6 +288,9 @@ private extension ChatRowView {
// Previously hidden when lastMessageFromMe (desktop parity),
// but this caused invisible unreads when user sent a reply
// without reading prior incoming messages first.
if dialog.hasMention && dialog.unreadCount > 0 && !isSyncing {
mentionBadge
}
if dialog.unreadCount > 0 && !isSyncing {
unreadBadge
}
@@ -296,6 +299,18 @@ private extension ChatRowView {
}
}
/// Telegram-style `@` mention indicator (shown left of unread count).
var mentionBadge: some View {
Text("@")
.font(.system(size: 14, weight: .medium))
.foregroundStyle(.white)
.frame(width: 20, height: 20)
.background {
Circle()
.fill(dialog.isMuted ? Color(hex: 0x787880) : RosettaColors.figmaBlue)
}
}
@ViewBuilder
var deliveryIcon: some View {
if dialog.lastMessageDelivered == .delivered && dialog.lastMessageRead {