Skip to content

Commit 86e2397

Browse files
committed
msglist [nfc]: Assert the model is non-null a bit more
This method is only called from callbacks which can only get invoked after the widget has built; and the build method already requires `model` to have been initialized. This is therefore NFC.
1 parent 0c03009 commit 86e2397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/message_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ class _MessageListState extends State<MessageList> with PerAccountStoreAwareStat
507507
// but makes things a bit more complicated to reason about.
508508
// The cause seems to be that this gets called again with maxScrollExtent
509509
// still not yet updated to account for the newly-added messages.
510-
model?.fetchOlder();
510+
model!.fetchOlder();
511511
}
512512
}
513513

0 commit comments

Comments
 (0)