Фикс: бэкграунд звонки — аудио, имя на CallKit, deactivation order, UUID race
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user