Disappearing message cleanups

This commit is contained in:
Evan Hahn
2021-06-16 17:20:17 -05:00
committed by GitHub
parent dfa6fb5d61
commit 03a187097f
16 changed files with 149 additions and 268 deletions

View File

@@ -1717,6 +1717,7 @@ export async function createGroupV2({
};
await window.Signal.Data.saveMessages([createdTheGroupMessage], {
forceSave: true,
Message: window.Whisper.Message,
});
const model = new window.Whisper.Message(createdTheGroupMessage);
window.MessageController.register(model.id, model);
@@ -2831,6 +2832,7 @@ async function updateGroup(
if (changeMessagesToSave.length > 0) {
await window.Signal.Data.saveMessages(changeMessagesToSave, {
forceSave: true,
Message: window.Whisper.Message,
});
changeMessagesToSave.forEach(changeMessage => {
const model = new window.Whisper.Message(changeMessage);