From fffe9c93c4fea3a0e1c0acbe395ef5639941f491 Mon Sep 17 00:00:00 2001 From: fourtf Date: Fri, 6 Apr 2018 18:05:30 +0200 Subject: [PATCH] fixes #307 --- src/messages/layouts/messagelayoutcontainer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/messages/layouts/messagelayoutcontainer.cpp b/src/messages/layouts/messagelayoutcontainer.cpp index 8ea48b456..c592b2386 100644 --- a/src/messages/layouts/messagelayoutcontainer.cpp +++ b/src/messages/layouts/messagelayoutcontainer.cpp @@ -110,9 +110,8 @@ void MessageLayoutContainer::breakLine() for (size_t i = lineStart; i < this->elements.size(); i++) { MessageLayoutElement *element = this->elements.at(i).get(); - bool isCompactEmote = - !(this->flags & Message::DisableCompactEmotes) && - (this->flags & element->getCreator().getFlags()) & MessageElement::EmoteImages; + bool isCompactEmote = !(this->flags & Message::DisableCompactEmotes) && + element->getCreator().getFlags() & MessageElement::EmoteImages; int yExtra = 0; if (isCompactEmote) {