diff --git a/src/HistoryViewItem.cc b/src/HistoryViewItem.cc index f13462a2..8eb92372 100644 --- a/src/HistoryViewItem.cc +++ b/src/HistoryViewItem.cc @@ -32,6 +32,9 @@ HistoryViewItem::HistoryViewItem(const Event &event, bool with_sender, const QSt auto timestamp = QDateTime::fromMSecsSinceEpoch(event.timestamp()); auto local_time = timestamp.toString("HH:mm"); + if (event.content().value("msgtype").toString() == "m.notice") + body = "" + body + ""; + time_label_ = new QLabel(this); time_label_->setWordWrap(true); QString msg( @@ -58,7 +61,7 @@ HistoryViewItem::HistoryViewItem(const Event &event, bool with_sender, const QSt " " " %2" " " - " " + " " " %3" " " ""