Don't display short texts for stickers in regular chats

This commit is contained in:
Sebastian J. Wolf 2020-08-26 23:14:29 +02:00
parent 8a3b07e537
commit 7fb1344be3

View file

@ -32,7 +32,7 @@ function getMessageText(message, simple) {
}
}
if (message.content['@type'] === 'messageSticker') {
return qsTr("Sticker: %1").arg(message.content.sticker.emoji);
return simple ? qsTr("Sticker: %1").arg(message.content.sticker.emoji) : "";
}
if (message.content['@type'] === 'messagePhoto') {
if (message.content.caption.text !== "") {