Skip to content

Commit

Permalink
Ignore expiration updates from groups you've left.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Dec 4, 2019
1 parent fb494c1 commit eaa8f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java
Expand Up @@ -1394,7 +1394,7 @@ private boolean shouldIgnore(@Nullable SignalServiceContent content) {
boolean isTextMessage = message.getBody().isPresent();
boolean isMediaMessage = message.getAttachments().isPresent() || message.getQuote().isPresent() || message.getSharedContacts().isPresent();
boolean isExpireMessage = message.isExpirationUpdate();
boolean isContentMessage = !message.isGroupUpdate() && (isTextMessage || isMediaMessage || isExpireMessage);
boolean isContentMessage = !message.isGroupUpdate() && !isExpireMessage && (isTextMessage || isMediaMessage);
boolean isGroupActive = groupId.isPresent() && groupDatabase.isActive(groupId.get());
boolean isLeaveMessage = message.getGroupInfo().isPresent() && message.getGroupInfo().get().getType() == SignalServiceGroup.Type.QUIT;

Expand Down

0 comments on commit eaa8f1e

Please sign in to comment.