ios: pass the online search rows' placeholder icons as images, as ProfileImage now takes them

Master changed ProfileImage's iconName: String to icon: Image (#7767's merge brought it in). The Directory and Names rows and New chat's group row still passed iconName, which no longer compiles; they pass Image(systemName:) as master's own callers do.
This commit is contained in:
spacedandy-agents-simplex
2026-10-19 10:24:41 +00:00
parent 547c8ac18b
commit a55cabfcfb
2 changed files with 3 additions and 3 deletions
@@ -238,7 +238,7 @@ struct DirectorySearchRow: View {
HStack(spacing: 8) {
ProfileImage(
imageStr: entry.image,
iconName: isChannel ? "antenna.radiowaves.left.and.right.circle.fill" : "person.2.circle.fill",
icon: Image(systemName: isChannel ? "antenna.radiowaves.left.and.right.circle.fill" : "person.2.circle.fill"),
size: 42
)
VStack(alignment: .leading, spacing: 2) {
@@ -289,7 +289,7 @@ struct NameSearchRow: View {
var body: some View {
HStack(spacing: 8) {
ProfileImage(imageStr: result.image, iconName: result.iconName, size: 42)
ProfileImage(imageStr: result.image, icon: Image(systemName: result.iconName), size: 42)
VStack(alignment: .leading, spacing: 2) {
if let profileName = result.profileName {
(Text(profileName).fontWeight(.bold) + Text(verbatim: " (\(result.simplexName))").foregroundColor(theme.colors.secondary))
@@ -174,7 +174,7 @@ struct ContactListNavLink: View {
}
} label: {
chatPreview(
ProfileImage(imageStr: groupInfo.image, iconName: groupInfo.chatIconName, size: 30),
ProfileImage(imageStr: groupInfo.image, icon: Image(systemName: groupInfo.chatIconName), size: 30),
NameWithBadge(Text(chat.chatInfo.chatViewName).foregroundColor(theme.colors.onBackground), chat.chatInfo.nameBadge)
.lineLimit(1)
)