Skip to content

Commit 61f513e

Browse files
gnpricechrisbobbe
authored andcommitted
notif [nfc]: Use TopicName.apiName for encoding NotificationOpenPayload
This isn't part of the Zulip server API -- it's entirely between the `buildUrl` and `parseUrl` of this class, and we could make up whatever encoding we like. But the API name of the topic is the natural thing to use.
1 parent 00dd8a4 commit 61f513e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/notifications/display.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ class NotificationOpenPayload {
573573
TopicNarrow(streamId: var channelId, :var topic) => {
574574
'narrow_type': 'topic',
575575
'channel_id': channelId.toString(),
576-
'topic': topic,
576+
'topic': topic.apiName,
577577
},
578578
DmNarrow(:var allRecipientIds) => {
579579
'narrow_type': 'dm',

0 commit comments

Comments
 (0)