Skip to content

Commit c1b49b3

Browse files
gnpricechrisbobbe
authored andcommitted
api [nfc]: Use TopicName.apiName for constructing narrow links
1 parent 7291212 commit c1b49b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model/internal_link.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Uri narrowLink(PerAccountStore store, Narrow narrow, {int? nearMessageId}) {
7777
final slugifiedName = _encodeHashComponent(name.replaceAll(' ', '-'));
7878
fragment.write('$streamId-$slugifiedName');
7979
case ApiNarrowTopic():
80-
fragment.write(_encodeHashComponent(element.operand));
80+
fragment.write(_encodeHashComponent(element.operand.apiName));
8181
case ApiNarrowDmModern():
8282
final suffix = element.operand.length >= 3 ? 'group' : 'dm';
8383
fragment.write('${element.operand.join(',')}-$suffix');

0 commit comments

Comments
 (0)