Initial pass to properly check multi-device environment in various spots.

This commit is contained in:
Cody Henthorne
2025-07-25 12:19:59 -04:00
committed by GitHub
parent e458a5fdb3
commit 3b028d49a5
44 changed files with 93 additions and 66 deletions

View File

@@ -449,7 +449,7 @@ public final class GroupSendUtil {
throw new CancelationException();
}
boolean onlyTargetIsSelfWithLinkedDevice = legacyTargets.isEmpty() && senderKeyTargets.isEmpty() && SignalStore.account().hasLinkedDevices();
boolean onlyTargetIsSelfWithLinkedDevice = legacyTargets.isEmpty() && senderKeyTargets.isEmpty() && SignalStore.account().isMultiDevice();
if (legacyTargets.size() > 0 || onlyTargetIsSelfWithLinkedDevice) {
if (legacyTargets.size() > 0) {

View File

@@ -446,7 +446,7 @@ open class MessageContentProcessor(private val context: Context) {
}
content.syncMessage != null -> {
SignalStore.account.hasLinkedDevices = true
SignalStore.account.isMultiDevice = true
SyncMessageProcessor.process(
context,