From 15f7e5ab37c990a7231489a4b312597677d4d041 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Wed, 30 Oct 2019 10:55:45 +1100 Subject: [PATCH] Don't send an empty message body when sending a background message. --- src/org/thoughtcrime/securesms/sms/MessageSender.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/sms/MessageSender.java b/src/org/thoughtcrime/securesms/sms/MessageSender.java index 660da23c4d..91e8bfc8ed 100644 --- a/src/org/thoughtcrime/securesms/sms/MessageSender.java +++ b/src/org/thoughtcrime/securesms/sms/MessageSender.java @@ -97,7 +97,7 @@ public class MessageSender { Util.runOnMain(() -> { SignalServiceMessageSender messageSender = ApplicationContext.getInstance(context).communicationModule.provideSignalMessageSender(); SignalServiceAddress address = new SignalServiceAddress(contactHexEncodedPublicKey); - SignalServiceDataMessage message = new SignalServiceDataMessage(System.currentTimeMillis(), ""); + SignalServiceDataMessage message = new SignalServiceDataMessage(System.currentTimeMillis(), null); try { // Try send to the original person messageSender.sendMessage(0, address, Optional.absent(), message); // The message ID doesn't matter