Skip to content

Commit 48c96d1

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/widgets/compose_box.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,11 +580,13 @@ class _StreamContentInputState extends State<_StreamContentInput> {
580580
final zulipLocalizations = ZulipLocalizations.of(context);
581581
final streamName = store.streams[widget.narrow.streamId]?.name
582582
?? zulipLocalizations.unknownChannelName;
583+
final topic = TopicName(_topicTextNormalized);
583584
return _ContentInput(
584585
narrow: widget.narrow,
585-
destination: TopicNarrow(widget.narrow.streamId, TopicName(_topicTextNormalized)),
586+
destination: TopicNarrow(widget.narrow.streamId, topic),
586587
controller: widget.controller,
587-
hintText: zulipLocalizations.composeBoxChannelContentHint(streamName, _topicTextNormalized));
588+
hintText: zulipLocalizations.composeBoxChannelContentHint(
589+
streamName, topic.displayName));
588590
}
589591
}
590592

0 commit comments

Comments
 (0)