From 6d0720c95618681f0c4f79d75554088e31960071 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Wed, 3 Jun 2015 15:51:27 -0700 Subject: [PATCH] insecure fallback mark as "not push" Closes #3332 // FREEBIE --- src/org/thoughtcrime/securesms/database/MmsDatabase.java | 2 +- src/org/thoughtcrime/securesms/database/SmsDatabase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/database/MmsDatabase.java b/src/org/thoughtcrime/securesms/database/MmsDatabase.java index 70c24e7267..63ac79ab9e 100644 --- a/src/org/thoughtcrime/securesms/database/MmsDatabase.java +++ b/src/org/thoughtcrime/securesms/database/MmsDatabase.java @@ -378,7 +378,7 @@ public class MmsDatabase extends MessagingDatabase { } public void markAsForcedSms(long messageId) { - updateMailboxBitmask(messageId, 0, Types.MESSAGE_FORCE_SMS_BIT); + updateMailboxBitmask(messageId, Types.PUSH_MESSAGE_BIT, Types.MESSAGE_FORCE_SMS_BIT); notifyConversationListeners(getThreadIdForMessage(messageId)); } diff --git a/src/org/thoughtcrime/securesms/database/SmsDatabase.java b/src/org/thoughtcrime/securesms/database/SmsDatabase.java index b9f5710f23..dc54c83154 100644 --- a/src/org/thoughtcrime/securesms/database/SmsDatabase.java +++ b/src/org/thoughtcrime/securesms/database/SmsDatabase.java @@ -198,7 +198,7 @@ public class SmsDatabase extends MessagingDatabase { } public void markAsForcedSms(long id) { - updateTypeBitmask(id, 0, Types.MESSAGE_FORCE_SMS_BIT); + updateTypeBitmask(id, Types.PUSH_MESSAGE_BIT, Types.MESSAGE_FORCE_SMS_BIT); } public void markAsDecryptFailed(long id) {