File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -187,20 +187,20 @@ class MentionAutocompleteView extends ChangeNotifier {
187
187
required PerAccountStore store,
188
188
required Narrow narrow,
189
189
}) {
190
- final (int ? , String ? ) streamAndTopic;
190
+ int ? streamId;
191
+ String ? topic;
191
192
switch (narrow) {
192
193
case StreamNarrow ():
193
- streamAndTopic = ( narrow.streamId, null ) ;
194
+ streamId = narrow.streamId;
194
195
case TopicNarrow ():
195
- streamAndTopic = (narrow.streamId, narrow.topic);
196
+ streamId = narrow.streamId;
197
+ topic = narrow.topic;
196
198
case DmNarrow ():
197
- streamAndTopic = ( null , null ) ;
199
+ break ;
198
200
case CombinedFeedNarrow ():
199
201
assert (false , 'No compose box, thus no autocomplete is available in ${narrow .runtimeType }.' );
200
- streamAndTopic = (null , null );
201
202
}
202
203
203
- final (streamId, topic) = streamAndTopic;
204
204
return store.users.values.toList ()
205
205
..sort ((userA, userB) => _compareByRelevance (userA, userB,
206
206
streamId: streamId,
You can’t perform that action at this time.
0 commit comments