summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2021-01-10 12:23:58 -0500
committertrilene <trilene@runbox.com>2021-01-10 12:23:58 -0500
commit3572c111f3f1730e6e8b0fb38a125d69aa1f9116 (patch)
treebbeb5362c725f1d4900b0c80f0ac1d8931ffee6c /src
parentFix some nulls in relations (diff)
downloadnheko-3572c111f3f1730e6e8b0fb38a125d69aa1f9116.tar.xz
Fix call invite declined on another device
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineModel.cpp4
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())