Skip to content

Commit eebd1ed

Browse files
committed
msglist [nfc]: Use const to avoid making new lists for nobody-is-typing
1 parent 9815022 commit eebd1ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model/typing_status.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TypingStatus extends PerAccountStoreBase with ChangeNotifier {
2222
Iterable<SendableNarrow> get debugActiveNarrows => _timerMapsByNarrow.keys;
2323

2424
Iterable<int> typistIdsInNarrow(SendableNarrow narrow) =>
25-
_timerMapsByNarrow[narrow]?.keys ?? [];
25+
_timerMapsByNarrow[narrow]?.keys ?? const [];
2626

2727
// Using SendableNarrow as the key covers the narrows
2828
// where typing notices are supported (topics and DMs).

0 commit comments

Comments
 (0)