turn force refresh back on

This commit is contained in:
Christien Rioux 2023-11-05 21:15:43 -05:00
parent 656bfbdfa4
commit e02e96a65d
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ class BackgroundTickerState extends ConsumerState<BackgroundTicker> {
activeAccountInfo: activeAccountInfo, activeAccountInfo: activeAccountInfo,
remoteIdentityPublicKey: remoteIdentityPublicKey, remoteIdentityPublicKey: remoteIdentityPublicKey,
remoteConversationRecordKey: remoteConversationRecordKey); remoteConversationRecordKey: remoteConversationRecordKey);
if (newMessages != null) { if (newMessages != null && newMessages.isNotEmpty) {
final changed = await mergeLocalConversationMessages( final changed = await mergeLocalConversationMessages(
activeAccountInfo: activeAccountInfo, activeAccountInfo: activeAccountInfo,
localConversationRecordKey: localConversationRecordKey, localConversationRecordKey: localConversationRecordKey,

View File

@ -281,7 +281,7 @@ class DHTShortArray {
/// Pull the latest or updated copy of the head record from the network /// Pull the latest or updated copy of the head record from the network
Future<bool> _refreshHead( Future<bool> _refreshHead(
{bool forceRefresh = false, bool onlyUpdates = false}) async { {bool forceRefresh = true, bool onlyUpdates = false}) async {
// Get an updated head record copy if one exists // Get an updated head record copy if one exists
final head = await _headRecord.getProtobuf(proto.DHTShortArray.fromBuffer, final head = await _headRecord.getProtobuf(proto.DHTShortArray.fromBuffer,
forceRefresh: forceRefresh, onlyUpdates: onlyUpdates); forceRefresh: forceRefresh, onlyUpdates: onlyUpdates);