mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-31 01:50:47 +03:00
Hide incoming CallCandidates in encrypted rooms
This commit is contained in:
parent
195ba5e5ee
commit
16209ce073
1 changed files with 9 additions and 0 deletions
|
@ -775,6 +775,15 @@ TimelineModel::internalAddEvents(
|
||||||
if (encInfo)
|
if (encInfo)
|
||||||
emit newEncryptedImage(encInfo.value());
|
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 (emitCallEvents) {
|
||||||
if (auto callInvite = std::get_if<
|
if (auto callInvite = std::get_if<
|
||||||
mtx::events::RoomEvent<mtx::events::msg::CallInvite>>(&e_)) {
|
mtx::events::RoomEvent<mtx::events::msg::CallInvite>>(&e_)) {
|
||||||
|
|
Loading…
Reference in a new issue