Skip to content

Commit 3be9377

Browse files
gnpricechrisbobbe
authored andcommitted
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 d831280 commit 3be9377

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
@@ -697,7 +697,7 @@ class MessageListView with ChangeNotifier, _MessageSequence {
697697
if (!narrow.containsMessage(message) || !_messageVisible(message)) {
698698
return;
699699
}
700-
if (!_fetched) {
700+
if (!fetched) {
701701
// TODO mitigate this fetch/event race: save message to add to list later
702702
return;
703703
}

0 commit comments

Comments
 (0)