mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Make initial timestamp on a thread match the 1st message
This commit is contained in:
@@ -21,12 +21,14 @@ var Whisper = Whisper || {};
|
||||
},
|
||||
|
||||
sendMessage: function(message) {
|
||||
var timestamp = Date.now();
|
||||
|
||||
this.messages().add({ type: 'outgoing',
|
||||
body: message,
|
||||
threadId: this.id,
|
||||
timestamp: new Date().getTime() }).save();
|
||||
timestamp: timestamp }).save();
|
||||
|
||||
this.save({ timestamp: new Date().getTime(),
|
||||
this.save({ timestamp: timestamp,
|
||||
unreadCount: 0,
|
||||
active: true});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user