Don't send an empty message body when sending a background message.

This commit is contained in:
Mikunj 2019-10-30 10:55:45 +11:00
parent 359363184a
commit 15f7e5ab37

View File

@ -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