mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Set receivedAt after decrypt, sort by received then sent
FREEBIE
This commit is contained in:
@@ -589,7 +589,13 @@
|
||||
model : Message,
|
||||
database : Whisper.Database,
|
||||
storeName : 'messages',
|
||||
comparator : 'received_at',
|
||||
comparator : function(left, right) {
|
||||
if (left.get('received_at') === right.get('received_at')) {
|
||||
return (left.get('sent_at') || 0) - (right.get('sent_at') || 0);
|
||||
}
|
||||
|
||||
return (left.get('received_at') || 0) - (right.get('received_at') || 0);
|
||||
},
|
||||
initialize : function(models, options) {
|
||||
if (options) {
|
||||
this.conversation = options.conversation;
|
||||
|
||||
Reference in New Issue
Block a user