From 4003519deb636a575064ca53a34b58ef2abe24e1 Mon Sep 17 00:00:00 2001 From: 446564 Date: Tue, 20 Jan 2026 15:26:41 -0800 Subject: [PATCH] add community to hashtag channel name brings behavior in line with community public channels and prefixes the community name this allows users to use the same radio with multiple clients and be able to tell which hashtag channel they are using i.e. Scouts #leaders, where previous it was just a private chanel named #leaders. --- lib/screens/channels_screen.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/screens/channels_screen.dart b/lib/screens/channels_screen.dart index 1cb66ab..22fb768 100644 --- a/lib/screens/channels_screen.dart +++ b/lib/screens/channels_screen.dart @@ -917,10 +917,11 @@ class _ChannelsScreenState extends State if (hashtag.startsWith('#')) { hashtag = hashtag.substring(1); } - final channelName = '#$hashtag'; + final String channelName; final Uint8List psk; if (isRegularHashtag) { + channelName = '#$hashtag'; // Regular hashtag - public derivation using SHA256 psk = Channel.derivePskFromHashtag(hashtag); } else { @@ -931,6 +932,7 @@ class _ChannelsScreenState extends State ); return; } + channelName = '${selectedCommunity!.name} #$hashtag'; psk = selectedCommunity!.deriveCommunityHashtagPsk(hashtag); // Track in community's hashtag list await _communityStore.addHashtagChannel(selectedCommunity!.id, hashtag);