Disable local delete sync

This commit is contained in:
Scott Nonnenberg 2024-06-20 12:23:01 -07:00 committed by GitHub
parent 7a7f484796
commit 71d6891132
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 23 deletions

View file

@ -170,7 +170,6 @@ import {
getConversationToDelete,
getMessageToDelete,
} from '../util/deleteForMe';
import { isEnabled } from '../RemoteConfig';
import { getCallHistorySelector } from '../state/selectors/callHistory';
/* eslint-disable more/no-then */
@ -5014,14 +5013,11 @@ export class ConversationModel extends window.Backbone
});
window.Signal.Data.updateConversation(this.attributes);
const enabled = false;
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 && enabled) {
log.info(`${logId}: Preparing sync message`);
const timestamp = Date.now();