Skip to content

Commit e3588e9

Browse files
committed
msglist [nfc]: Use fetched getter when reading
Generally this is helpful because it means that viewing references to the field will highlight specifically the places that set it. Here it's also helpful because we're about to replace the field with an enum shared across several getters.
1 parent 83b89a9 commit e3588e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model/message_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ class MessageListView with ChangeNotifier, _MessageSequence {
653653
if (!narrow.containsMessage(message) || !_messageVisible(message)) {
654654
return;
655655
}
656-
if (!_fetched) {
656+
if (!fetched) {
657657
// TODO mitigate this fetch/event race: save message to add to list later
658658
return;
659659
}

0 commit comments

Comments
 (0)