mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-23 21:11:55 +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
|
||||
case Constants.messageContentType.newMessagesMarker:
|
||||
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
|
||||
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