Fix MessageCache dev assertion for direct disappearing timer
This commit is contained in:
parent
f0983ab3a9
commit
76bf92dab4
1 changed files with 3 additions and 3 deletions
|
@ -4433,7 +4433,9 @@ export class ConversationModel extends window.Backbone
|
|||
const shouldBeRead =
|
||||
(isInitialSync && isFromSyncOperation) || isFromMe || isNoteToSelf;
|
||||
|
||||
const id = generateGuid();
|
||||
const model = new window.Whisper.Message({
|
||||
id,
|
||||
conversationId: this.id,
|
||||
expirationTimerUpdate: {
|
||||
expireTimer,
|
||||
|
@ -4451,12 +4453,10 @@ export class ConversationModel extends window.Backbone
|
|||
// TODO: DESKTOP-722
|
||||
} as unknown as MessageAttributesType);
|
||||
|
||||
const id = await window.Signal.Data.saveMessage(model.attributes, {
|
||||
await window.Signal.Data.saveMessage(model.attributes, {
|
||||
ourAci: window.textsecure.storage.user.getCheckedAci(),
|
||||
});
|
||||
|
||||
model.set({ id });
|
||||
|
||||
const message = window.MessageCache.__DEPRECATED$register(
|
||||
id,
|
||||
model,
|
||||
|
|
Loading…
Reference in a new issue