cleanAttributes: Use value from cache, not from database

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2024-08-12 15:17:01 -05:00 committed by GitHub
parent fa1d6f1ea3
commit 49d7e0e0cc
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;