diff options
author | DeepBlueV7.X <nicolas.werner@hotmail.de> | 2021-01-10 18:46:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 18:46:57 +0100 |
commit | fcedfac59785a0a57990d1bd9d82b2f2aa258d1a (patch) | |
tree | bbeb5362c725f1d4900b0c80f0ac1d8931ffee6c | |
parent | Fix some nulls in relations (diff) | |
parent | Fix call invite declined on another device (diff) | |
download | nheko-fcedfac59785a0a57990d1bd9d82b2f2aa258d1a.tar.xz |
Merge pull request #369 from trilene/master
Fix call invite declined on another device
-rw-r--r-- | src/timeline/TimelineModel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 2b5b5794..852f584d 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -614,7 +614,9 @@ TimelineModel::addEvents(const mtx::responses::Timeline &timeline) [this](auto &event) { event.room_id = room_id_.toStdString(); if constexpr (std::is_same_v<std::decay_t<decltype(event)>, - RoomEvent<msg::CallAnswer>>) + RoomEvent<msg::CallAnswer>> || + std::is_same_v<std::decay_t<decltype(event)>, + RoomEvent<msg::CallHangUp>>) emit newCallEvent(event); else { if (event.sender != http::client()->user_id().to_string()) |