mark mutual contact

This commit is contained in:
Kylmakalle 2024-09-24 22:06:59 +03:00
parent e928f37094
commit 9288fa1e27
2 changed files with 3 additions and 1 deletions

View File

@ -144,3 +144,5 @@
/* Confirmation before making a Video Call */
"CallConfirmation.Video.Title" = "Make a Video Call?";
"MutualContact.Label" = "mutual contact";

View File

@ -1335,7 +1335,7 @@ private func infoItems(nearestChatParticipant: (String?, Int32?), showProfileId:
} else {
label = presentationData.strings.ContactInfo_PhoneLabelMobile
}
items[currentPeerInfoSection]!.append(PeerInfoScreenLabeledValueItem(id: 2, label: label, text: formattedPhone, textColor: .accent, action: { node, progress in
items[currentPeerInfoSection]!.append(PeerInfoScreenLabeledValueItem(id: 2, label: label, text: formattedPhone, additionalText: user.flags.contains(.mutualContact) ? i18n("MutualContact.Label", presentationData.strings.baseLanguageCode) : nil, textColor: .accent, action: { node, progress in
interaction.openPhone(phone, node, nil, progress)
}, longTapAction: nil, contextAction: { node, gesture, _ in
interaction.openPhone(phone, node, gesture, nil)