Introduce new remote flag for storage service write behavior

This commit is contained in:
Scott Nonnenberg 2020-09-10 10:59:59 -07:00 committed by GitHub
parent b2634d1cb9
commit 4c98b4a96f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View file

@ -3084,6 +3084,14 @@
// [X] whitelisted
// [X] archived
captureChange() {
if (!window.Signal.RemoteConfig.isEnabled('desktop.storageWrite')) {
window.log.info(
'conversation.captureChange: Returning early; desktop.storageWrite is falsey'
);
return;
}
this.set({ needsStorageServiceSync: true });
this.queueJob(() => {