fix(MessageView): unbreak showing identity ring in replies

use the correct way to get the original message's content type and
compare it with the correct Constant type
This commit is contained in:
Lukáš Tinkl 2022-10-26 11:26:46 +02:00 committed by Lukáš Tinkl
parent 36454eadd3
commit 16a51f2f72
1 changed files with 2 additions and 2 deletions

View File

@ -643,8 +643,8 @@ Loader {
width: 20
height: 20
name: delegate.replyMessage ? delegate.replyMessage.senderIcon : ""
assetSettings.isImage: delegate.replyMessage && (delegate.replyMessage.messageContentType == Constants.discordMessageType || delegate.replyMessage.senderIcon.startsWith("data"))
showRing: delegate.replyMessage && delegate.replyMessage.messageContentType != Constants.discordMessageType
assetSettings.isImage: delegate.replyMessage && (delegate.replyMessage.contentType === Constants.messageContentType.discordMessageType || delegate.replyMessage.senderIcon.startsWith("data"))
showRing: delegate.replyMessage && delegate.replyMessage.contentType !== Constants.messageContentType.discordMessageType
pubkey: delegate.replySenderId
colorId: Utils.colorIdForPubkey(delegate.replySenderId)
colorHash: Utils.getColorHashAsJson(delegate.replySenderId, false, !root.isDiscordMessage)