From a85dbce0416cd3f694e64804cebcb379e82cfa08 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Wed, 12 Nov 2014 14:22:31 -0800 Subject: [PATCH] Correctly handle PKWM via SMS. --- .../thoughtcrime/securesms/database/EncryptingSmsDatabase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/database/EncryptingSmsDatabase.java b/src/org/thoughtcrime/securesms/database/EncryptingSmsDatabase.java index ca2cf59d2c..e923ff958d 100644 --- a/src/org/thoughtcrime/securesms/database/EncryptingSmsDatabase.java +++ b/src/org/thoughtcrime/securesms/database/EncryptingSmsDatabase.java @@ -102,7 +102,7 @@ public class EncryptingSmsDatabase extends SmsDatabase { public void updateBundleMessageBody(MasterSecret masterSecret, long messageId, String body) { String encryptedBody = getEncryptedBody(masterSecret, body); updateMessageBodyAndType(messageId, encryptedBody, Types.TOTAL_MASK, - Types.BASE_INBOX_TYPE | Types.SECURE_MESSAGE_BIT); + Types.BASE_INBOX_TYPE | Types.ENCRYPTION_SYMMETRIC_BIT | Types.SECURE_MESSAGE_BIT); } public void updateMessageBody(MasterSecret masterSecret, long messageId, String body) {