Hide incoming CallCandidates in encrypted rooms

master
trilene 4 years ago
parent 195ba5e5ee
commit 16209ce073
  1. 9
      src/timeline/TimelineModel.cpp

@ -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_)) {

Loading…
Cancel
Save