diff --git a/lib/widgets/messagelist.dart b/lib/widgets/messagelist.dart index 449acee5..be24f592 100644 --- a/lib/widgets/messagelist.dart +++ b/lib/widgets/messagelist.dart @@ -32,15 +32,18 @@ class _MessageListState extends State { var initi = Provider.of(outerContext, listen: false).initialScrollIndex; bool isP2P = !Provider.of(context).isGroup; bool isGroupAndSyncing = Provider.of(context).isGroup == true && Provider.of(context).status == "Authenticated"; - bool isGroupAndSynced = Provider.of(context).isGroup && Provider.of(context).status == "Synced"; - bool isGroupAndNotAuthenticated = Provider.of(context).isGroup && Provider.of(context).status != "Authenticated"; + + // Older checks, no longer used, kept for reference. + //bool isGroupAndSynced = Provider.of(context).isGroup && Provider.of(context).status == "Synced"; + //bool isGroupAndNotAuthenticated = Provider.of(context).isGroup && Provider.of(context).status != "Authenticated"; bool showEphemeralWarning = (isP2P && Provider.of(context).savePeerHistory != "SaveHistory"); bool showOfflineWarning = Provider.of(context).isOnline() == false; bool showSyncing = isGroupAndSyncing; bool showMessageWarning = showEphemeralWarning || showOfflineWarning || showSyncing; - // Only load historical messages when the conversation is with a p2p contact OR the conversation is a server and *not* syncing. - bool loadMessages = isP2P || (isGroupAndSynced || isGroupAndNotAuthenticated); + // We used to only load historical messages when the conversation is with a p2p contact OR the conversation is a server and *not* syncing. + // With the message cache in place this is no longer necessary + bool loadMessages = true; return RepaintBoundary( child: Container(