From fe684088ded57b23ef57cefb42ea97349eb98d1b Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 26 Feb 2021 16:22:59 +1100 Subject: [PATCH] set the lastProfileUpdateTimestamp when user edits its profile --- js/background.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/background.js b/js/background.js index 9e3e23e6d..40d7af2a7 100644 --- a/js/background.js +++ b/js/background.js @@ -534,6 +534,9 @@ avatar: newAvatarPath, }); await conversation.commit(); + window.libsession.Utils.UserUtils.setLastProfileUpdateTimestamp( + Date.now() + ); await window.libsession.Utils.SyncUtils.forceSyncConfigurationNowIfNeeded( true ); @@ -550,6 +553,9 @@ }); // might be good to not trigger a sync if the name did not change await conversation.commit(); + window.libsession.Utils.UserUtils.setLastProfileUpdateTimestamp( + Date.now() + ); await window.libsession.Utils.SyncUtils.forceSyncConfigurationNowIfNeeded( true );