From de1475b3bbc80369c50305f02f2aeda2ec122010 Mon Sep 17 00:00:00 2001 From: audric Date: Fri, 20 Aug 2021 09:31:35 +1000 Subject: [PATCH] fix slow sending of opengroup message --- ts/models/conversation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/models/conversation.ts b/ts/models/conversation.ts index 66a5391011..4ecd12f4a4 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;