mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-21 23:59:56 +01:00
Fix stuck outgoing messages when there a no remaining linked devices.
This commit is contained in:
committed by
Alex Hart
parent
4051cf739c
commit
b700529c3b
+5
@@ -2041,6 +2041,11 @@ public class SignalServiceMessageSender {
|
||||
Log.d(TAG, "[sendMessage][" + timestamp + "] Sending a SKDM to " + messages.getDestination() + " for devices: " + messages.getDevices() + (content.getContent().get().dataMessage != null ? " (it's piggy-backing on a DataMessage)" : ""));
|
||||
}
|
||||
|
||||
if (messages.getDevices().isEmpty()) {
|
||||
Log.w(TAG, "[sendMessage][" + timestamp + "] Skipping send - no devices with valid sessions (isMultiDevice=" + aciStore.isMultiDevice() + ").");
|
||||
return SendMessageResult.success(recipient, messages.getDevices(), false, false, System.currentTimeMillis() - startTime, content.getContent());
|
||||
}
|
||||
|
||||
if (cancelationSignal != null && cancelationSignal.isCanceled()) {
|
||||
return SendMessageResult.canceledFailure(recipient);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user