Fix for non-group threading issue.

This commit is contained in:
Moxie Marlinspike 2014-02-15 11:44:47 -08:00
parent a305bb80e6
commit b79bc4c234

View File

@ -148,7 +148,6 @@ public class PushReceiver {
boolean secure)
{
try {
Log.w("PushReceiver", "Processing: " + new String(message.getBody()));
PushMessageContent messageContent = PushMessageContent.parseFrom(message.getBody());
if (messageContent.hasGroup()) {
@ -261,7 +260,9 @@ public class PushReceiver {
boolean secure)
{
EncryptingSmsDatabase database = DatabaseFactory.getEncryptingSmsDatabase(context);
IncomingTextMessage textMessage = new IncomingTextMessage(message, "", messageContent.getGroup());
IncomingTextMessage textMessage = new IncomingTextMessage(message, "",
messageContent.hasGroup() ?
messageContent.getGroup() : null);
if (secure) {
textMessage = new IncomingEncryptedMessage(textMessage, "");