File tree Expand file tree Collapse file tree 2 files changed +8
-24
lines changed Expand file tree Collapse file tree 2 files changed +8
-24
lines changed Original file line number Diff line number Diff line change @@ -108,24 +108,6 @@ class TopicNarrow extends Narrow implements SendableNarrow {
108
108
109
109
TopicNarrow sansWith () => TopicNarrow (streamId, topic);
110
110
111
- /// Process [topic] to match how it would appear on a message object from
112
- /// the server.
113
- ///
114
- /// Returns a new [TopicNarrow] with the [topic] processed.
115
- ///
116
- /// See [TopicName.processLikeServer] .
117
- TopicNarrow processTopicLikeServer ({
118
- required int zulipFeatureLevel,
119
- required String ? realmEmptyTopicDisplayName,
120
- }) {
121
- return TopicNarrow (
122
- streamId,
123
- topic.processLikeServer (
124
- zulipFeatureLevel: zulipFeatureLevel,
125
- realmEmptyTopicDisplayName: realmEmptyTopicDisplayName),
126
- with_: with_);
127
- }
128
-
129
111
@override
130
112
bool containsMessage (MessageBase message) {
131
113
final conversation = message.conversation;
Original file line number Diff line number Diff line change @@ -774,14 +774,16 @@ class _MessageListState extends State<MessageList> with PerAccountStoreAwareStat
774
774
}
775
775
776
776
void _initModel (PerAccountStore store, Anchor anchor) {
777
- // Normalize topic name if this is a TopicNarrow. See #1717.
778
777
var narrow = widget.narrow;
779
778
if (narrow is TopicNarrow ) {
780
- narrow = narrow.processTopicLikeServer (
781
- zulipFeatureLevel: store.zulipFeatureLevel,
782
- realmEmptyTopicDisplayName: store.zulipFeatureLevel > 334
783
- ? store.realmEmptyTopicDisplayName
784
- : null );
779
+ // Normalize topic name. See #1717.
780
+ narrow = TopicNarrow (narrow.streamId,
781
+ narrow.topic.processLikeServer (
782
+ zulipFeatureLevel: store.zulipFeatureLevel,
783
+ realmEmptyTopicDisplayName: store.zulipFeatureLevel > 334
784
+ ? store.realmEmptyTopicDisplayName
785
+ : null ),
786
+ with_: narrow.with_);
785
787
if (narrow != widget.narrow) {
786
788
SchedulerBinding .instance.scheduleFrameCallback ((_) {
787
789
widget.onNarrowChanged (narrow);
You can’t perform that action at this time.
0 commit comments