fixes that timeout/ban messages didn't show (#728)

This commit is contained in:
apa420 2018-09-30 12:50:47 +02:00 committed by pajlada
parent 3868feb0fa
commit 86024ade24

View file

@ -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<TimestampElement>();
this->emplace<TextElement>(text, MessageElementFlag::Text,
MessageColor::System);
this->message().searchText = text;
}
MessageBuilder::MessageBuilder(const BanAction &action, uint32_t count)