mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-03 15:58:40 +00:00
Update thread timestamp on draft creation.
Fixes #1055 Closes #2909 // FREEBIE
This commit is contained in:
committed by
Moxie Marlinspike
parent
e4e24f7ae5
commit
f5724795cf
@@ -130,8 +130,10 @@ public class ThreadDatabase extends Database {
|
||||
notifyConversationListListeners();
|
||||
}
|
||||
|
||||
public void updateSnippet(long threadId, String snippet, long type) {
|
||||
public void updateSnippet(long threadId, String snippet, long date, long type) {
|
||||
ContentValues contentValues = new ContentValues(3);
|
||||
|
||||
contentValues.put(DATE, date - date % 1000);
|
||||
contentValues.put(SNIPPET, snippet);
|
||||
contentValues.put(SNIPPET_TYPE, type);
|
||||
SQLiteDatabase db = databaseHelper.getWritableDatabase();
|
||||
|
||||
Reference in New Issue
Block a user