Fix syncing of "Off" setting for default timer

This commit is contained in:
Fedor Indutny 2021-06-15 10:06:53 -07:00 committed by GitHub
parent 584cedecff
commit 562ab5a5a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -842,9 +842,7 @@ export async function mergeAccountRecord(
window.storage.put('primarySendsSms', primarySendsSms);
}
if (typeof universalExpireTimer === 'number') {
setUniversalExpireTimer(universalExpireTimer);
}
setUniversalExpireTimer(universalExpireTimer || 0);
const PHONE_NUMBER_SHARING_MODE_ENUM =
window.textsecure.protobuf.AccountRecord.PhoneNumberSharingMode;