summary refs log tree commit diff
diff options
context:
space:
mode:
-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())