mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-24 05:21:58 +00:00
fix(MessageView): Explicit type check for messageComponent
This commit is contained in:
parent
ac6cebed9f
commit
c6f378b968
@ -210,8 +210,20 @@ Loader {
|
|||||||
return gapComponent
|
return gapComponent
|
||||||
case Constants.messageContentType.newMessagesMarker:
|
case Constants.messageContentType.newMessagesMarker:
|
||||||
return newMessagesMarkerComponent
|
return newMessagesMarkerComponent
|
||||||
default:
|
case Constants.messageContentType.messageType:
|
||||||
|
case Constants.messageContentType.stickerType:
|
||||||
|
case Constants.messageContentType.emojiType:
|
||||||
|
case Constants.messageContentType.transactionType:
|
||||||
|
case Constants.messageContentType.imageType:
|
||||||
|
case Constants.messageContentType.audioType:
|
||||||
|
case Constants.messageContentType.communityInviteType:
|
||||||
|
case Constants.messageContentType.discordMessageType:
|
||||||
return messageComponent
|
return messageComponent
|
||||||
|
case Constants.messageContentType.unknownContentType:
|
||||||
|
// NOTE: We could display smth like "unknown message type, please upgrade Status to see it".
|
||||||
|
return null
|
||||||
|
default:
|
||||||
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user