mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Fix friend request accepted preview
This commit is contained in:
parent
8c054a060e
commit
244d4fd899
@ -136,7 +136,9 @@ public class ThreadDatabase extends Database {
|
|||||||
ContentValues contentValues = new ContentValues(7);
|
ContentValues contentValues = new ContentValues(7);
|
||||||
contentValues.put(DATE, date - date % 1000);
|
contentValues.put(DATE, date - date % 1000);
|
||||||
contentValues.put(MESSAGE_COUNT, count);
|
contentValues.put(MESSAGE_COUNT, count);
|
||||||
|
if (!body.isEmpty()) {
|
||||||
contentValues.put(SNIPPET, body);
|
contentValues.put(SNIPPET, body);
|
||||||
|
}
|
||||||
contentValues.put(SNIPPET_URI, attachment == null ? null : attachment.toString());
|
contentValues.put(SNIPPET_URI, attachment == null ? null : attachment.toString());
|
||||||
contentValues.put(SNIPPET_TYPE, type);
|
contentValues.put(SNIPPET_TYPE, type);
|
||||||
contentValues.put(STATUS, status);
|
contentValues.put(STATUS, status);
|
||||||
@ -157,7 +159,9 @@ public class ThreadDatabase extends Database {
|
|||||||
ContentValues contentValues = new ContentValues(4);
|
ContentValues contentValues = new ContentValues(4);
|
||||||
|
|
||||||
contentValues.put(DATE, date - date % 1000);
|
contentValues.put(DATE, date - date % 1000);
|
||||||
|
if (!snippet.isEmpty()) {
|
||||||
contentValues.put(SNIPPET, snippet);
|
contentValues.put(SNIPPET, snippet);
|
||||||
|
}
|
||||||
contentValues.put(SNIPPET_TYPE, type);
|
contentValues.put(SNIPPET_TYPE, type);
|
||||||
contentValues.put(SNIPPET_URI, attachment == null ? null : attachment.toString());
|
contentValues.put(SNIPPET_URI, attachment == null ? null : attachment.toString());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user