remove proof from cards, send owner public key for channel to relay

This commit is contained in:
Evgeny @ SimpleX Chat
2026-09-27 17:00:16 +00:00
parent 867949d2aa
commit 4bdeb68cc5
16 changed files with 155 additions and 233 deletions
@@ -56,7 +56,7 @@ struct CIChatLinkHeader: View {
)
.padding(.trailing, 4)
VStack(alignment: .leading) {
NameWithBadge(Text(chatLink.displayName).font(.headline), linkBadge, .headline).lineLimit(2)
Text(chatLink.displayName).font(.headline).lineLimit(2)
let fn = chatLink.fullName
if fn != "" && fn != chatLink.displayName {
Text(fn).font(.subheadline).lineLimit(2)
@@ -65,11 +65,4 @@ struct CIChatLinkHeader: View {
.frame(minHeight: 44)
}
}
private var linkBadge: LocalBadge? {
guard case let .contact(_, profile, _) = chatLink, let b = profile.badge else { return nil }
let expired = Date.now.timeIntervalSince(b.badgeInfo.badgeExpiry)
let status: BadgeStatus = expired > BADGE_OLD_INTERVAL ? .expiredOld : expired > BADGE_GRACE_INTERVAL ? .expired : .active
return LocalBadge(badge: b.badgeInfo, status: status)
}
}