Fix delete group from message request state bug.

Fixes #12193
fork-5.53.8
Cody Henthorne 2022-07-08 14:34:52 -04:00 zatwierdzone przez Alex Hart
rodzic 1a80cb7c42
commit 60e366e98a
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -101,8 +101,8 @@ public class MultiDeviceMessageRequestResponseJob extends BaseJob {
SignalServiceMessageSender messageSender = ApplicationDependencies.getSignalServiceMessageSender();
Recipient recipient = Recipient.resolved(threadRecipient);
if (!recipient.hasServiceId()) {
Log.i(TAG, "Queued for recipient without ServiceId");
if (!recipient.isGroup() && !recipient.hasServiceId()) {
Log.i(TAG, "Queued for non-group recipient without ServiceId");
return;
}

Wyświetl plik

@ -1102,7 +1102,7 @@ public final class MessageContentProcessor {
if (response.getPerson().isPresent()) {
recipient = Recipient.externalPush(response.getPerson().get());
} else if (response.getGroupId().isPresent()) {
GroupId groupId = GroupId.v1(response.getGroupId().get());
GroupId groupId = GroupId.push(response.getGroupId().get());
recipient = Recipient.externalPossiblyMigratedGroup(groupId);
} else {
warn("Message request response was missing a thread recipient! Skipping.");