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) {