mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-24 02:51:17 -08:00
satisfy linter
This commit is contained in:
1 parent
a64ecd5773
commit
5b1fb580d2
1 file changed
+3
-2
@@ -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) : ''
|
||||
|
||||
Reference in new issue
Block a user