From 86024ade2474513a613a2cdbe9ff8c7ccce7bfb8 Mon Sep 17 00:00:00 2001 From: apa420 <17131426+apa420@users.noreply.github.com> Date: Sun, 30 Sep 2018 12:50:47 +0200 Subject: [PATCH] fixes that timeout/ban messages didn't show (#728) --- src/messages/MessageBuilder.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/messages/MessageBuilder.cpp b/src/messages/MessageBuilder.cpp index 49c96c946..ec4917b6c 100644 --- a/src/messages/MessageBuilder.cpp +++ b/src/messages/MessageBuilder.cpp @@ -82,6 +82,10 @@ MessageBuilder::MessageBuilder(TimeoutMessageTag, const QString &username, this->message().flags.set(MessageFlag::Timeout); this->message().flags.set(MessageFlag::DoNotTriggerNotification); this->message().timeoutUser = username; + this->emplace(); + this->emplace(text, MessageElementFlag::Text, + MessageColor::System); + this->message().searchText = text; } MessageBuilder::MessageBuilder(const BanAction &action, uint32_t count)