satisfy linter

This commit is contained in:
7w1 committed 2026-05-14 23:01:23 -05:00
1 parent a64ecd5773
commit 5b1fb580d2
1 file changed
+3 -2
+3 -2
View File
@@ -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 <MessageUnsupportedContent />;
}
const msgtype = rawMsgtype as MsgType;
const trimmedBody = nonEmptyTrimmed(
typeof content.body === 'string' ? trimReplyFromBody(content.body) : ''