From d515d1abd45932c0f6a19186e11f0c4a10b63a98 Mon Sep 17 00:00:00 2001 From: matheusbsilva137 Date: Wed, 11 Oct 2023 18:53:27 -0300 Subject: [PATCH] Remove outdated markdown field when updating message mentions on username change --- apps/meteor/server/models/raw/Messages.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/meteor/server/models/raw/Messages.ts b/apps/meteor/server/models/raw/Messages.ts index 49930a8c92ea..1c5df883d822 100644 --- a/apps/meteor/server/models/raw/Messages.ts +++ b/apps/meteor/server/models/raw/Messages.ts @@ -1214,6 +1214,7 @@ export class MessagesRaw extends BaseRaw implements IMessagesModel { 'mentions.$.username': newUsername, 'msg': newMessage, }, + $unset: { md: 1 }, }; return this.updateOne(query, update);