diff options
author | trilene <trilene@runbox.com> | 2020-07-13 19:45:41 -0400 |
---|---|---|
committer | trilene <trilene@runbox.com> | 2020-07-13 19:45:41 -0400 |
commit | 774d86409629f305a33c5f07d5b78dc37e72935f (patch) | |
tree | 7cc1193231be9fef2a4233be16afae9a6e8a2222 /src | |
parent | Centre PlaceCall dialog (diff) | |
download | nheko-774d86409629f305a33c5f07d5b78dc37e72935f.tar.xz |
Hide CallCandidates events from the timeline
Diffstat (limited to 'src')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index aaaf7d4a..26a2f72e 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -1593,7 +1593,8 @@ TimelineModel::addPendingMessage(mtx::events::collections::TimelineEvents event) QString txn_id_qstr = QString::fromStdString(mtx::accessors::event_id(event)); pending.push_back(txn_id_qstr); - if (!std::get_if<mtx::events::RoomEvent<mtx::events::msg::Reaction>>(&event)) { + if (!std::get_if<mtx::events::RoomEvent<mtx::events::msg::Reaction>>(&event) && + !std::get_if<mtx::events::RoomEvent<mtx::events::msg::CallCandidates>>(&event)) { beginInsertRows(QModelIndex(), 0, 0); this->eventOrder.insert(this->eventOrder.begin(), txn_id_qstr); endInsertRows(); |