summary refs log tree commit diff
path: root/src/ui/HiddenEvents.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/HiddenEvents.cpp')
-rw-r--r--src/ui/HiddenEvents.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/HiddenEvents.cpp b/src/ui/HiddenEvents.cpp

index 1ebcda3e..4686dfef 100644 --- a/src/ui/HiddenEvents.cpp +++ b/src/ui/HiddenEvents.cpp
@@ -17,9 +17,20 @@ HiddenEvents::load() hiddenEvents.hidden_event_types = std::vector{ EventType::Reaction, EventType::CallCandidates, + EventType::CallNegotiate, EventType::Unsupported, }; + // check if selected answer is from to local user + /* + * localUser accepts/rejects the call and it is selected by caller - No message + * Another User accepts/rejects the call and it is selected by caller - "Call answered/rejected + * elsewhere" + */ + bool callLocalUser_ = true; + if (callLocalUser_) + hiddenEvents.hidden_event_types->push_back(EventType::CallSelectAnswer); + if (auto temp = cache::client()->getAccountData(mtx::events::EventType::NhekoHiddenEvents, "")) { auto h = std::get<