cleanAttributes: Use value from cache, not from database

This commit is contained in:
Scott Nonnenberg 2024-08-13 02:26:40 +10:00 committed by GitHub
parent 611ece2b21
commit 8166024700
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1820,7 +1820,7 @@ export class ConversationModel extends window.Backbone
let upgradedMessage = message;
if ((schemaVersion || 0) < Message.VERSION_NEEDED_FOR_DISPLAY) {
// Yep, we really do want to wait for each of these
upgradedMessage = await upgradeMessageSchema(message);
upgradedMessage = await upgradeMessageSchema(model.attributes);
model.set(upgradedMessage);
await DataWriter.saveMessage(upgradedMessage, { ourAci });
upgraded += 1;