mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-11 19:17:04 +10:00
Merge pull request #59 from 446564/community-#-names
add community to hashtag channel name
This commit is contained in:
@@ -1046,10 +1046,11 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
|||||||
if (hashtag.startsWith('#')) {
|
if (hashtag.startsWith('#')) {
|
||||||
hashtag = hashtag.substring(1);
|
hashtag = hashtag.substring(1);
|
||||||
}
|
}
|
||||||
final channelName = '#$hashtag';
|
final String channelName;
|
||||||
|
|
||||||
final Uint8List psk;
|
final Uint8List psk;
|
||||||
if (isRegularHashtag) {
|
if (isRegularHashtag) {
|
||||||
|
channelName = '#$hashtag';
|
||||||
// Regular hashtag - public derivation using SHA256
|
// Regular hashtag - public derivation using SHA256
|
||||||
psk = Channel.derivePskFromHashtag(hashtag);
|
psk = Channel.derivePskFromHashtag(hashtag);
|
||||||
} else {
|
} else {
|
||||||
@@ -1068,8 +1069,8 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
|||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
psk = selectedCommunity!
|
channelName = '${selectedCommunity!.name} #$hashtag';
|
||||||
.deriveCommunityHashtagPsk(hashtag);
|
psk = selectedCommunity!.deriveCommunityHashtagPsk(hashtag);
|
||||||
// Track in community's hashtag list
|
// Track in community's hashtag list
|
||||||
await _communityStore.addHashtagChannel(
|
await _communityStore.addHashtagChannel(
|
||||||
selectedCommunity!.id,
|
selectedCommunity!.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user