mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 07:57:30 +00:00
Don't auto-set thread to read on send.
This commit is contained in:
parent
8dad82323d
commit
49ea135e37
@ -365,7 +365,6 @@ public class MmsDatabase extends Database {
|
|||||||
contentValues.put(DATE_RECEIVED, contentValues.getAsLong(DATE_SENT));
|
contentValues.put(DATE_RECEIVED, contentValues.getAsLong(DATE_SENT));
|
||||||
|
|
||||||
long messageId = insertMediaMessage(sendRequest, contentValues);
|
long messageId = insertMediaMessage(sendRequest, contentValues);
|
||||||
DatabaseFactory.getThreadDatabase(context).setRead(threadId);
|
|
||||||
Trimmer.trimThread(context, threadId);
|
Trimmer.trimThread(context, threadId);
|
||||||
|
|
||||||
return messageId;
|
return messageId;
|
||||||
|
@ -235,7 +235,6 @@ public class SmsDatabase extends Database {
|
|||||||
SQLiteDatabase db = databaseHelper.getWritableDatabase();
|
SQLiteDatabase db = databaseHelper.getWritableDatabase();
|
||||||
long messageId = db.insert(TABLE_NAME, ADDRESS, contentValues);
|
long messageId = db.insert(TABLE_NAME, ADDRESS, contentValues);
|
||||||
|
|
||||||
DatabaseFactory.getThreadDatabase(context).setRead(threadId);
|
|
||||||
DatabaseFactory.getThreadDatabase(context).update(threadId);
|
DatabaseFactory.getThreadDatabase(context).update(threadId);
|
||||||
notifyConversationListeners(threadId);
|
notifyConversationListeners(threadId);
|
||||||
Trimmer.trimThread(context, threadId);
|
Trimmer.trimThread(context, threadId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user