Fix syncing group messages when you're the only member.
This commit is contained in:
parent
b86acb9773
commit
71c92a1c90
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ import org.thoughtcrime.securesms.recipients.Recipient;
|
|||
import org.thoughtcrime.securesms.recipients.RecipientId;
|
||||
import org.thoughtcrime.securesms.recipients.RecipientUtil;
|
||||
import org.thoughtcrime.securesms.util.FeatureFlags;
|
||||
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
||||
import org.whispersystems.libsignal.InvalidKeyException;
|
||||
import org.whispersystems.libsignal.NoSessionException;
|
||||
import org.whispersystems.libsignal.util.guava.Optional;
|
||||
|
@ -203,7 +204,7 @@ public final class GroupSendUtil {
|
|||
throw new CancelationException();
|
||||
}
|
||||
|
||||
if (legacyTargets.size() > 0) {
|
||||
if (legacyTargets.size() > 0 || TextSecurePreferences.isMultiDevice(context)) {
|
||||
Log.i(TAG, "Need to do " + legacyTargets.size() + " legacy sends.");
|
||||
|
||||
List<SignalServiceAddress> targets = legacyTargets.stream().map(r -> recipients.getAddress(r.getId())).collect(Collectors.toList());
|
||||
|
|
Loading…
Add table
Reference in a new issue