diff options
author | Rohit Sutradhar <rohitsutradhar311@gmail.com> | 2022-10-14 19:19:05 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 13:49:05 +0000 |
commit | ac48c332867e773e0e0eb9ad0139b7b625e26851 (patch) | |
tree | 9f4799c650889bb770f72e127441426c9ae42a07 /src/ui | |
parent | Add toggle to disable decrypting notifications (diff) | |
download | nheko-ac48c332867e773e0e0eb9ad0139b7b625e26851.tar.xz |
VoIP v1 implementation (#1161)
* Initial commit for VoIP v1 implementation * Added draft of event handlers for voip methods * Added event handlers for VoIP events, added rejectCall, added version tracking for call version for V0 and V1 compatibility * Added call events to the general message pipeline. Modified Call Reject mechanism * Added message delegates for new events. Modified hidden events. Updated handle events. * Updated implementation to keep track of calls on other devices * Fixed linting * Fixed code warnings * Fixed minor bugs * fixed ci * Added acceptNegotiation method definition when missing gstreamer * Fixed warnings * Fixed linting
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/HiddenEvents.cpp | 11 |
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< |