From 767b69685dbb49bceaa411a7c69beab18f508ed2 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:26:07 -0700 Subject: [PATCH] Fix softAssert when sending reaction Co-authored-by: Josh Perez --- ts/jobs/helpers/sendReaction.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ts/jobs/helpers/sendReaction.ts b/ts/jobs/helpers/sendReaction.ts index d95e002ec5b..0dc899b913b 100644 --- a/ts/jobs/helpers/sendReaction.ts +++ b/ts/jobs/helpers/sendReaction.ts @@ -173,6 +173,11 @@ export async function sendReaction( }) ), }); + // Adds the reaction's attributes to the message cache so that we can + // safely `set` on it later. + window.MessageCache.toMessageAttributes( + ephemeralMessageForReactionSend.attributes + ); ephemeralMessageForReactionSend.doNotSave = true;