Sender Key: Prepare for production
This commit is contained in:
parent
f226822dff
commit
bff3f0c74a
14 changed files with 334 additions and 183 deletions
|
@ -1201,7 +1201,7 @@ export class ConversationModel extends window.Backbone
|
|||
timestamp,
|
||||
groupMembers,
|
||||
contentMessage,
|
||||
ContentHint.SUPPLEMENTARY,
|
||||
ContentHint.IMPLICIT,
|
||||
undefined,
|
||||
{
|
||||
...sendOptions,
|
||||
|
@ -1212,7 +1212,7 @@ export class ConversationModel extends window.Backbone
|
|||
} else {
|
||||
handleMessageSend(
|
||||
window.Signal.Util.sendContentMessageToGroup({
|
||||
contentHint: ContentHint.SUPPLEMENTARY,
|
||||
contentHint: ContentHint.IMPLICIT,
|
||||
contentMessage,
|
||||
conversation: this,
|
||||
online: true,
|
||||
|
@ -3289,7 +3289,7 @@ export class ConversationModel extends window.Backbone
|
|||
targetTimestamp,
|
||||
timestamp,
|
||||
undefined, // expireTimer
|
||||
ContentHint.SUPPLEMENTARY,
|
||||
ContentHint.DEFAULT,
|
||||
undefined, // groupId
|
||||
profileKey,
|
||||
options
|
||||
|
@ -3305,7 +3305,7 @@ export class ConversationModel extends window.Backbone
|
|||
profileKey,
|
||||
},
|
||||
this,
|
||||
ContentHint.SUPPLEMENTARY,
|
||||
ContentHint.DEFAULT,
|
||||
options
|
||||
);
|
||||
})();
|
||||
|
@ -3446,7 +3446,7 @@ export class ConversationModel extends window.Backbone
|
|||
undefined, // deletedForEveryoneTimestamp
|
||||
timestamp,
|
||||
expireTimer,
|
||||
ContentHint.SUPPLEMENTARY,
|
||||
ContentHint.DEFAULT,
|
||||
undefined, // groupId
|
||||
profileKey,
|
||||
options
|
||||
|
@ -3465,7 +3465,7 @@ export class ConversationModel extends window.Backbone
|
|||
profileKey,
|
||||
},
|
||||
this,
|
||||
ContentHint.SUPPLEMENTARY,
|
||||
ContentHint.DEFAULT,
|
||||
options
|
||||
);
|
||||
})();
|
||||
|
|
|
@ -3601,9 +3601,13 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
conversationId,
|
||||
message.get('sent_at')
|
||||
);
|
||||
if (item) {
|
||||
if (item && item.wasOpened) {
|
||||
window.log.info(
|
||||
`handleDataMessage: found retry placeholder. Updating ${message.idForLogging()} received_at/received_at_ms`
|
||||
`handleDataMessage: found retry placeholder for ${message.idForLogging()}, but conversation was opened. No updates made.`
|
||||
);
|
||||
} else if (item) {
|
||||
window.log.info(
|
||||
`handleDataMessage: found retry placeholder for ${message.idForLogging()}. Updating received_at/received_at_ms`
|
||||
);
|
||||
message.set({
|
||||
received_at: item.receivedAtCounter,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue