fixed badges scaling with emote scaling slider

This commit is contained in:
pphop 2018-10-24 22:39:52 +05:00
parent 5497fec839
commit 0e96caad5f

View file

@ -121,7 +121,10 @@ void EmoteElement::addToContainer(MessageLayoutContainer &container,
if (image->isEmpty())
return;
auto emoteScale = getSettings()->emoteScale.getValue();
auto emoteScale =
this->getFlags().hasAny(MessageElementFlag::Badges)
? 1
: getSettings()->emoteScale.getValue();
auto size =
QSize(int(container.getScale() * image->width() * emoteScale),