mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Initial pass to properly check multi-device environment in various spots.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user