Merge pull request #59 from 446564/community-#-names
add community to hashtag channel name
This commit is contained in:
1 file changed
+4
-3
@@ -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