Skip to content
Snippets Groups Projects
Commit 3572c111 authored by trilene's avatar trilene
Browse files

Fix call invite declined on another device

parent cc9de7f3
No related branches found
No related tags found
No related merge requests found
Pipeline #313 failed
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment