Skip to content

Commit

Permalink
Don't send group info requests in response to group info requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Mar 26, 2020
1 parent 5f7075d commit b2bff39
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,11 @@ private void handleGroupMessage(@NonNull SignalServiceContent content,
private void handleUnknownGroupMessage(@NonNull SignalServiceContent content,
@NonNull SignalServiceGroup group)
{
ApplicationDependencies.getJobManager().add(new RequestGroupInfoJob(Recipient.externalPush(context, content.getSender()).getId(), group.getGroupId()));
if (group.getType() != SignalServiceGroup.Type.REQUEST_INFO) {
ApplicationDependencies.getJobManager().add(new RequestGroupInfoJob(Recipient.externalPush(context, content.getSender()).getId(), group.getGroupId()));
} else {
Log.w(TAG, "Received a REQUEST_INFO message for a group we don't know about. Ignoring.");
}
}

private void handleExpirationUpdate(@NonNull SignalServiceContent content,
Expand Down

0 comments on commit b2bff39

Please sign in to comment.