From 49ea135e371e1f1d0b8208e9664118048f6dae6d Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Wed, 6 Feb 2013 16:40:09 -0800 Subject: [PATCH] Don't auto-set thread to read on send. --- src/org/thoughtcrime/securesms/database/MmsDatabase.java | 1 - src/org/thoughtcrime/securesms/database/SmsDatabase.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/database/MmsDatabase.java b/src/org/thoughtcrime/securesms/database/MmsDatabase.java index d93a019cfb..e5acf63976 100644 --- a/src/org/thoughtcrime/securesms/database/MmsDatabase.java +++ b/src/org/thoughtcrime/securesms/database/MmsDatabase.java @@ -365,7 +365,6 @@ public class MmsDatabase extends Database { contentValues.put(DATE_RECEIVED, contentValues.getAsLong(DATE_SENT)); long messageId = insertMediaMessage(sendRequest, contentValues); - DatabaseFactory.getThreadDatabase(context).setRead(threadId); Trimmer.trimThread(context, threadId); return messageId; diff --git a/src/org/thoughtcrime/securesms/database/SmsDatabase.java b/src/org/thoughtcrime/securesms/database/SmsDatabase.java index 1ca27d9243..32efe28245 100644 --- a/src/org/thoughtcrime/securesms/database/SmsDatabase.java +++ b/src/org/thoughtcrime/securesms/database/SmsDatabase.java @@ -235,7 +235,6 @@ public class SmsDatabase extends Database { SQLiteDatabase db = databaseHelper.getWritableDatabase(); long messageId = db.insert(TABLE_NAME, ADDRESS, contentValues); - DatabaseFactory.getThreadDatabase(context).setRead(threadId); DatabaseFactory.getThreadDatabase(context).update(threadId); notifyConversationListeners(threadId); Trimmer.trimThread(context, threadId);