Update timers whenever we mark messages read

This commit is contained in:
Scott Nonnenberg
2021-07-19 13:45:18 -07:00
committed by GitHub
parent cd35a29638
commit 7761d83055
16 changed files with 70 additions and 150 deletions

View File

@@ -1718,7 +1718,6 @@ 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);
@@ -2864,7 +2863,6 @@ 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);