From 2dae9180ec41186e49aa1500e0cd7cc237663f70 Mon Sep 17 00:00:00 2001 From: Stanislav Dmitrenko <7953703+avently@users.noreply.github.com> Date: Fri, 19 Jan 2024 02:14:18 +0700 Subject: [PATCH] ios: text color of group invitation in chat list (#3703) * ios: text color of group invitation in chat list * refactor --------- Co-authored-by: Avently Co-authored-by: Evgeny Poberezkin --- apps/ios/Shared/Views/ChatList/ChatPreviewView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ios/Shared/Views/ChatList/ChatPreviewView.swift b/apps/ios/Shared/Views/ChatList/ChatPreviewView.swift index 4f57158af..186a709ce 100644 --- a/apps/ios/Shared/Views/ChatList/ChatPreviewView.swift +++ b/apps/ios/Shared/Views/ChatList/ChatPreviewView.swift @@ -93,11 +93,11 @@ struct ChatPreviewView: View { case let .direct(contact): previewTitle(contact.verified == true ? verifiedIcon + t : t).foregroundColor(deleting ? Color.secondary : nil) case let .group(groupInfo): - let v = previewTitle(t).foregroundColor(deleting ? Color.secondary : nil) + let v = previewTitle(t) switch (groupInfo.membership.memberStatus) { case .memInvited: v.foregroundColor(deleting ? .secondary : chat.chatInfo.incognito ? .indigo : .accentColor) case .memAccepted: v.foregroundColor(.secondary) - default: v.foregroundColor(deleting ? Color.secondary : nil) + default: if deleting { v.foregroundColor(.secondary) } else { v } } default: previewTitle(t) }