From a96e5e6ae66ebfac60a6e4db22221e4b2178ca2e Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Thu, 27 Jun 2024 13:12:06 -0400 Subject: [PATCH] Fix delete sync capability updating on linked devices. --- .../thoughtcrime/securesms/jobs/RefreshOwnProfileJob.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/jobs/RefreshOwnProfileJob.java b/app/src/main/java/org/thoughtcrime/securesms/jobs/RefreshOwnProfileJob.java index bb861d065a..7333543939 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/jobs/RefreshOwnProfileJob.java +++ b/app/src/main/java/org/thoughtcrime/securesms/jobs/RefreshOwnProfileJob.java @@ -216,6 +216,11 @@ public class RefreshOwnProfileJob extends BaseJob { return; } + if (!Recipient.self().getDeleteSyncCapability().isSupported() && capabilities.isDeleteSync()) { + Log.d(TAG, "Transitioned to delete sync capable, notify linked devices in case we were the last one"); + AppDependencies.getJobManager().add(new MultiDeviceProfileContentUpdateJob()); + } + SignalDatabase.recipients().setCapabilities(Recipient.self().getId(), capabilities); }