mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Hide CallCandidates events from the timeline
This commit is contained in:
parent
09d2d937c5
commit
774d864096
1 changed files with 2 additions and 1 deletions
|
@ -1593,7 +1593,8 @@ TimelineModel::addPendingMessage(mtx::events::collections::TimelineEvents event)
|
||||||
|
|
||||||
QString txn_id_qstr = QString::fromStdString(mtx::accessors::event_id(event));
|
QString txn_id_qstr = QString::fromStdString(mtx::accessors::event_id(event));
|
||||||
pending.push_back(txn_id_qstr);
|
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);
|
beginInsertRows(QModelIndex(), 0, 0);
|
||||||
this->eventOrder.insert(this->eventOrder.begin(), txn_id_qstr);
|
this->eventOrder.insert(this->eventOrder.begin(), txn_id_qstr);
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
|
|
Loading…
Reference in a new issue