Skip to content
Snippets Groups Projects
Commit 16209ce0 authored by trilene's avatar trilene
Browse files

Hide incoming CallCandidates in encrypted rooms

parent 195ba5e5
No related branches found
No related tags found
No related merge requests found
......@@ -775,6 +775,15 @@ TimelineModel::internalAddEvents(
if (encInfo)
emit newEncryptedImage(encInfo.value());
if (std::holds_alternative<
mtx::events::RoomEvent<mtx::events::msg::CallCandidates>>(e_)) {
// don't display CallCandidate events to user
events.insert(id, e);
if (emitCallEvents)
emit newCallEvent(e_);
continue;
}
if (emitCallEvents) {
if (auto callInvite = std::get_if<
mtx::events::RoomEvent<mtx::events::msg::CallInvite>>(&e_)) {
......
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