Remove desktop.deleteSync from RemoteConfig

This commit is contained in:
Fedor Indutny 2024-07-23 09:58:40 -07:00 committed by GitHub
parent c70a8955f9
commit 06f9c4ffe1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 4 additions and 22 deletions

View file

@ -178,7 +178,6 @@ import {
getConversationToDelete,
getMessageToDelete,
} from '../util/deleteForMe';
import { isEnabled } from '../RemoteConfig';
import { getCallHistorySelector } from '../state/selectors/callHistory';
/* eslint-disable more/no-then */
@ -5047,11 +5046,7 @@ export class ConversationModel extends window.Backbone
const ourConversation =
window.ConversationController.getOurConversationOrThrow();
const capable = Boolean(ourConversation.get('capabilities')?.deleteSync);
if (
source === 'local-delete' &&
capable &&
isEnabled('desktop.deleteSync.send')
) {
if (source === 'local-delete' && capable) {
log.info(`${logId}: Preparing sync message`);
const timestamp = Date.now();