From 5b1fb580d2ed93cebb779c24e908fdf6823d7da9 Mon Sep 17 00:00:00 2001 From: 7w1 Date: Thu, 14 May 2026 23:01:23 -0500 Subject: [PATCH] satisfy linter --- src/app/components/message/Reply.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/components/message/Reply.tsx b/src/app/components/message/Reply.tsx index 495e09093..6672e5641 100644 --- a/src/app/components/message/Reply.tsx +++ b/src/app/components/message/Reply.tsx @@ -71,10 +71,11 @@ export const replyPreviewBodyForTimelineEvent = ( return 'Sticker'; } - const msgtype = content.msgtype; - if (typeof msgtype !== 'string') { + const rawMsgtype = content.msgtype; + if (typeof rawMsgtype !== 'string') { return ; } + const msgtype = rawMsgtype as MsgType; const trimmedBody = nonEmptyTrimmed( typeof content.body === 'string' ? trimReplyFromBody(content.body) : ''