mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-03 22:35:45 +02:00
emoji: fix background color
- isEmojiOnly changed to message containing only an emoji, not an edit or reply. - adapted size GitLab: #957 Change-Id: I78388a406a2a0b9c93f1c291850062fd9bf04a54
This commit is contained in:
parent
c0fdeb3f34
commit
9e84681856
2 changed files with 3 additions and 2 deletions
|
@ -78,7 +78,7 @@ SBSMessageBase {
|
|||
|
||||
wrapMode: Label.WrapAtWordBoundaryOrAnywhere
|
||||
selectByMouse: true
|
||||
font.pixelSize: isEmojiOnly? JamiTheme.chatviewEmojiSize : JamiTheme.chatviewFontSize
|
||||
font.pixelSize: isEmojiOnly? JamiTheme.chatviewEmojiSize : JamiTheme.emojiBubbleSize
|
||||
font.hintingPreference: Font.PreferNoHinting
|
||||
renderType: Text.NativeRendering
|
||||
textFormat: Text.MarkdownText
|
||||
|
|
|
@ -479,7 +479,8 @@ MessageListModel::dataForItem(item_t item, int, int role) const
|
|||
case Role::Readers:
|
||||
return QVariant(messageToReaders_[item.first]);
|
||||
case Role::IsEmojiOnly:
|
||||
return QVariant(isOnlyEmoji(item.second.body));
|
||||
return QVariant(replyId.isEmpty() && item.second.previousBodies.isEmpty()
|
||||
&& isOnlyEmoji(item.second.body));
|
||||
case Role::Reactions:
|
||||
return QVariant(item.second.reactions);
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue