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
This commit is contained in:
parent
8a4bb32b4a
commit
ac48c33286
19 changed files with 583 additions and 79 deletions
|
|
@ -184,8 +184,18 @@ Cache::isHiddenEvent(lmdb::txn &txn,
|
|||
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 = getAccountData(txn, mtx::events::EventType::NhekoHiddenEvents, "")) {
|
||||
auto h = std::get<
|
||||
|
|
@ -1661,11 +1671,18 @@ isMessage(const mtx::events::RoomEvent<mtx::events::voip::CallAnswer> &)
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
auto
|
||||
isMessage(const mtx::events::RoomEvent<mtx::events::voip::CallHangUp> &)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// auto
|
||||
// isMessage(const mtx::events::RoomEvent<mtx::events::voip::CallReject> &)
|
||||
// {
|
||||
// return true;
|
||||
// }
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue