Skip to content

Commit 6d6dc6d

Browse files
committed
compose [nfc]: Derive hintText from topic display name
Signed-off-by: Zixuan James Li <[email protected]>
1 parent c8494a8 commit 6d6dc6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/widgets/compose_box.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,13 +577,13 @@ class _StreamContentInputState extends State<_StreamContentInput> {
577577
final zulipLocalizations = ZulipLocalizations.of(context);
578578
final streamName = store.streams[widget.narrow.streamId]?.name
579579
?? zulipLocalizations.unknownChannelName;
580+
final topic = TopicName(widget.controller.topic.textNormalized);
580581
return _ContentInput(
581582
narrow: widget.narrow,
582-
destination: TopicNarrow(widget.narrow.streamId,
583-
TopicName(widget.controller.topic.textNormalized)),
583+
destination: TopicNarrow(widget.narrow.streamId, topic),
584584
controller: widget.controller,
585-
hintText: zulipLocalizations.composeBoxChannelContentHint(streamName,
586-
widget.controller.topic.textNormalized));
585+
hintText: zulipLocalizations.composeBoxChannelContentHint(
586+
streamName, topic.displayName));
587587
}
588588
}
589589

0 commit comments

Comments
 (0)