diff --git a/ts/models/conversation.ts b/ts/models/conversation.ts index 66a539101..4ecd12f4a 100644 --- a/ts/models/conversation.ts +++ b/ts/models/conversation.ts @@ -743,9 +743,9 @@ export class ConversationModel extends Backbone.Model { if (!this.isPublic()) { messageWithSchema.destination = destination; + } else { // set the serverTimestamp only if this conversation is a public one. - - messageWithSchema.serverTimestamp = new Date().getTime(); + messageWithSchema.serverTimestamp = Date.now(); } messageWithSchema.source = UserUtils.getOurPubKeyStrFromCache(); messageWithSchema.sourceDevice = 1;