import QtQuick 2.3 import "../../../../../shared" import "../../../../../imports" StyledTextEdit { id: chatText visible: contentType == Constants.messageType || isEmoji textFormat: Text.RichText horizontalAlignment: Text.AlignLeft wrapMode: Text.Wrap font.pixelSize: 15 readOnly: true selectByMouse: true color: Style.current.textColor z: 51 onLinkActivated: function (link) { if(link.startsWith("#")){ chatsModel.joinChat(link.substring(1), Constants.chatTypePublic); return; } if (link.startsWith('//')) { let pk = link.replace("//", ""); profilePopup.openPopup(chatsModel.userNameOrAlias(pk), pk, chatsModel.generateIdenticon(pk)) return; } Qt.openUrlExternally(link) } text: { if(contentType === Constants.stickerType) return ""; let msg = Utils.linkifyAndXSS(message); if(isEmoji){ return Emoji.parse(msg, "72x72"); } else { return ``+ `
`+ ``+ ``+ ``+ `${Emoji.parse(msg, "26x26")}`+ ``+ ``; } } }