summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-01-07 15:56:46 +0100
committerGitHub <noreply@github.com>2021-01-07 15:56:46 +0100
commit49abcb24b5b243bed96a8961a2614233cda23afb (patch)
tree151078e9f4dbe15141e09a1d31ad59eab78843ce /src/timeline/TimelineModel.cpp
parentFix notification reply build on other platforms (diff)
parentFix device discovery under GStreamer 1.16 (diff)
downloadnheko-49abcb24b5b243bed96a8961a2614233cda23afb.tar.xz
Merge pull request #356 from trilene/call-dialogs-qml
Port call dialogs to Qml
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp

index adef886d..2b5b5794 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp
@@ -613,8 +613,13 @@ TimelineModel::addEvents(const mtx::responses::Timeline &timeline) std::visit( [this](auto &event) { event.room_id = room_id_.toStdString(); - if (event.sender != http::client()->user_id().to_string()) + if constexpr (std::is_same_v<std::decay_t<decltype(event)>, + RoomEvent<msg::CallAnswer>>) emit newCallEvent(event); + else { + if (event.sender != http::client()->user_id().to_string()) + emit newCallEvent(event); + } }, e); else if (std::holds_alternative<StateEvent<state::Avatar>>(e))