Add locks to channels in messaging, update share channels icons to match

This commit is contained in:
Garth Vander Houwen 2025-06-15 20:23:42 -07:00
parent be263b412a
commit 27ed820045
2 changed files with 8 additions and 1 deletions

View file

@ -58,6 +58,13 @@ struct ChannelList: View {
VStack(alignment: .leading) {
HStack {
if channel.psk?.hexDescription.count ?? 0 < 3 {
Image(systemName: "lock.slash.fill")
.foregroundColor(.red)
} else {
Image(systemName: "lock.fill")
.foregroundColor(.green)
}
if channel.name?.isEmpty ?? false {
if channel.role == 1 {
Text(String("PrimaryChannel").camelCaseToWords())

View file

@ -83,7 +83,7 @@ struct ShareChannels: View {
.labelsHidden()
Text(((channel.name!.isEmpty ? "Primary" : channel.name) ?? "Primary").camelCaseToWords())
if channel.psk?.hexDescription.count ?? 0 < 3 {
Image(systemName: "lock.slash")
Image(systemName: "lock.slash.fill")
.foregroundColor(.red)
} else {
Image(systemName: "lock.fill")