Skip to content

Commit

Permalink
Merge pull request #1873 from Bilb/fix-slow-send-opengroup-message
Browse files Browse the repository at this point in the history
fix slow sending of opengroup message
  • Loading branch information
Bilb authored Aug 19, 2021
2 parents c59ad7d + de1475b commit 138a00f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/models/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,9 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {

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;
Expand Down

0 comments on commit 138a00f

Please sign in to comment.