From d0cd2621ca8de499b792bc3717dd5ed34c365f59 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Sun, 27 Aug 2017 17:59:06 -0700 Subject: [PATCH] Only process messages if a body is present // FREEBIE --- src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java b/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java index e1d2c68094..389a526b2a 100644 --- a/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java +++ b/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java @@ -160,7 +160,7 @@ public class PushDecryptJob extends ContextJob { else if (message.isGroupUpdate()) handleGroupMessage(masterSecret, envelope, message, smsMessageId); else if (message.isExpirationUpdate()) handleExpirationUpdate(masterSecret, envelope, message, smsMessageId); else if (message.getAttachments().isPresent()) handleMediaMessage(masterSecret, envelope, message, smsMessageId); - else handleTextMessage(masterSecret, envelope, message, smsMessageId); + else if (message.getBody().isPresent()) handleTextMessage(masterSecret, envelope, message, smsMessageId); if (message.getGroupInfo().isPresent() && groupDatabase.isUnknownGroup(GroupUtil.getEncodedId(message.getGroupInfo().get().getGroupId(), false))) { handleUnknownGroupMessage(envelope, message.getGroupInfo().get());