Fix delete group from message request state bug.

Fixes #12193
This commit is contained in:
Cody Henthorne
2022-07-08 14:34:52 -04:00
committed by Alex Hart
parent 1a80cb7c42
commit 60e366e98a
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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.");