Fix delete sync capability updating on linked devices.

This commit is contained in:
Cody Henthorne
2024-06-27 13:12:06 -04:00
parent 4cfdfab31e
commit a96e5e6ae6

View File

@@ -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);
}