set the lastProfileUpdateTimestamp when user edits its profile

pull/1528/head
Audric Ackermann 5 years ago
parent 0a539c79ce
commit fe684088de
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -534,6 +534,9 @@
avatar: newAvatarPath, avatar: newAvatarPath,
}); });
await conversation.commit(); await conversation.commit();
window.libsession.Utils.UserUtils.setLastProfileUpdateTimestamp(
Date.now()
);
await window.libsession.Utils.SyncUtils.forceSyncConfigurationNowIfNeeded( await window.libsession.Utils.SyncUtils.forceSyncConfigurationNowIfNeeded(
true true
); );
@ -550,6 +553,9 @@
}); });
// might be good to not trigger a sync if the name did not change // might be good to not trigger a sync if the name did not change
await conversation.commit(); await conversation.commit();
window.libsession.Utils.UserUtils.setLastProfileUpdateTimestamp(
Date.now()
);
await window.libsession.Utils.SyncUtils.forceSyncConfigurationNowIfNeeded( await window.libsession.Utils.SyncUtils.forceSyncConfigurationNowIfNeeded(
true true
); );

Loading…
Cancel
Save