mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Fixed group in-thread notifications
This commit is contained in:
parent
723fb4ffdd
commit
79c554fcc7
@ -352,12 +352,12 @@ public class MmsDatabase extends Database implements MmsSmsColumns {
|
||||
|
||||
long messageId = insertMediaMessage(masterSecret, retrieved, contentValues);
|
||||
|
||||
notifyConversationListeners(threadId);
|
||||
DatabaseFactory.getThreadDatabase(context).update(threadId);
|
||||
DatabaseFactory.getThreadDatabase(context).setUnread(threadId);
|
||||
DatabaseFactory.getThreadDatabase(context).update(threadId);
|
||||
notifyConversationListeners(threadId);
|
||||
Trimmer.trimThread(context, threadId);
|
||||
|
||||
return new Pair<Long, Long>(threadId, messageId);
|
||||
return new Pair<Long, Long>(messageId, threadId);
|
||||
}
|
||||
|
||||
public Pair<Long, Long> insertMessageInbox(MasterSecret masterSecret, RetrieveConf retrieved,
|
||||
|
@ -211,10 +211,10 @@ public class SmsDatabase extends Database implements MmsSmsColumns {
|
||||
|
||||
ContentValues values = new ContentValues(6);
|
||||
values.put(ADDRESS, message.getSender());
|
||||
values.put(DATE_RECEIVED, Long.valueOf(System.currentTimeMillis()));
|
||||
values.put(DATE_RECEIVED, System.currentTimeMillis());
|
||||
values.put(DATE_SENT, message.getSentTimestampMillis());
|
||||
values.put(PROTOCOL, message.getProtocol());
|
||||
values.put(READ, Integer.valueOf(0));
|
||||
values.put(READ, 0);
|
||||
|
||||
if (!Util.isEmpty(message.getPseudoSubject()))
|
||||
values.put(SUBJECT, message.getPseudoSubject());
|
||||
|
Loading…
Reference in New Issue
Block a user