Skip to content

Commit

Permalink
Fix delete group from message request state bug.
Browse files Browse the repository at this point in the history
Fixes #12193
  • Loading branch information
cody-signal authored and alex-signal committed Jul 11, 2022
1 parent 1a80cb7 commit 60e366e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -101,8 +101,8 @@ public void onRun() throws IOException, UntrustedIdentityException {
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;
}

Expand Down
Expand Up @@ -1102,7 +1102,7 @@ private void handleSynchronizeMessageRequestResponse(@NonNull MessageRequestResp
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.");
Expand Down

0 comments on commit 60e366e

Please sign in to comment.