mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Don't block messages from unknown groups.
We were incorrectly considering unknown groups to have been "left".
This commit is contained in:
parent
c5f53b23fa
commit
6eb8693546
@ -961,6 +961,10 @@ public class PushDecryptJob extends ContextJob {
|
|||||||
Optional<String> groupId = message.getGroupInfo().isPresent() ? Optional.of(GroupUtil.getEncodedId(message.getGroupInfo().get().getGroupId(), false))
|
Optional<String> groupId = message.getGroupInfo().isPresent() ? Optional.of(GroupUtil.getEncodedId(message.getGroupInfo().get().getGroupId(), false))
|
||||||
: Optional.absent();
|
: Optional.absent();
|
||||||
|
|
||||||
|
if (groupId.isPresent() && groupDatabase.isUnknownGroup(groupId.get())) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
boolean isTextMessage = message.getBody().isPresent();
|
boolean isTextMessage = message.getBody().isPresent();
|
||||||
boolean isMediaMessage = message.getAttachments().isPresent() || message.getQuote().isPresent() || message.getSharedContacts().isPresent();
|
boolean isMediaMessage = message.getAttachments().isPresent() || message.getQuote().isPresent() || message.getSharedContacts().isPresent();
|
||||||
boolean isExpireMessage = message.isExpirationUpdate();
|
boolean isExpireMessage = message.isExpirationUpdate();
|
||||||
|
Loading…
Reference in New Issue
Block a user