Merge pull request #352 from RyanRory/open-group-date-issue

Fix Open Group Message Ordering Issue
This commit is contained in:
Niels Andriesse 2020-09-24 11:39:14 +10:00 committed by GitHub
commit c33df6fd55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -914,7 +914,7 @@ public class MmsDatabase extends MessagingDatabase {
type |= Types.EXPIRATION_TIMER_UPDATE_BIT; type |= Types.EXPIRATION_TIMER_UPDATE_BIT;
} }
return insertMessageInbox(retrieved, "", threadId, type, 0); return insertMessageInbox(retrieved, "", threadId, type, serverTimestamp);
} }
public Optional<InsertResult> insertSecureDecryptedMessageInbox(IncomingMediaMessage retrieved, long threadId) public Optional<InsertResult> insertSecureDecryptedMessageInbox(IncomingMediaMessage retrieved, long threadId)