File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ class TypingStatus extends PerAccountStoreBase with ChangeNotifier {
2121
2222 Iterable <SendableNarrow > get debugActiveNarrows => _timerMapsByNarrow.keys;
2323
24- Iterable <int > typistIdsInNarrow (SendableNarrow narrow) =>
25- _timerMapsByNarrow[narrow]? .keys ?? [] ;
24+ Iterable <int >? typistIdsInNarrow (SendableNarrow narrow) =>
25+ _timerMapsByNarrow[narrow]? .keys;
2626
2727 // Using SendableNarrow as the key covers the narrows
2828 // where typing notices are supported (topics and DMs).
Original file line number Diff line number Diff line change @@ -1012,7 +1012,7 @@ class _TypingStatusWidgetState extends State<TypingStatusWidget> with PerAccount
10121012 final store = PerAccountStoreWidget .of (context);
10131013 final zulipLocalizations = ZulipLocalizations .of (context);
10141014 final typistIds = model! .typistIdsInNarrow (narrow);
1015- if (typistIds.isEmpty ) return const SizedBox ();
1015+ if (typistIds == null ) return const SizedBox ();
10161016 final text = switch (typistIds.length) {
10171017 1 => zulipLocalizations.onePersonTyping (
10181018 store.userDisplayName (typistIds.first)),
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ void main() {
6565 }
6666
6767 void checkTypists (Map <SendableNarrow , List <User >> typistsByNarrow) {
68- final actualTypistsByNarrow = < SendableNarrow , Iterable <int >> {};
68+ final actualTypistsByNarrow = < SendableNarrow , Iterable <int >? > {};
6969 for (final narrow in model.debugActiveNarrows) {
7070 actualTypistsByNarrow[narrow] = model.typistIdsInNarrow (narrow);
7171 }
You can’t perform that action at this time.
0 commit comments