From ac755a045cb6829fd152990aa46ad0ca786518f5 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Mon, 7 Oct 2024 10:37:43 +0000 Subject: [PATCH] i forgor --- src/dpp/voice/enabled/handle_frame.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dpp/voice/enabled/handle_frame.cpp b/src/dpp/voice/enabled/handle_frame.cpp index 97f01260d1..c2900dfae9 100644 --- a/src/dpp/voice/enabled/handle_frame.cpp +++ b/src/dpp/voice/enabled/handle_frame.cpp @@ -45,7 +45,7 @@ bool discord_voice_client::handle_frame(const std::string &data, ws_opcode opcod case voice_client_dave_mls_external_sender: { log(ll_debug, "voice_client_dave_mls_external_sender"); - mls_state->dave_session->set_external_sender(dave_header.get_data(data.length())); + mls_state->dave_session->set_external_sender(dave_header.get_data()); mls_state->encryptor = std::make_unique(); mls_state->decryptors.clear(); @@ -54,7 +54,7 @@ bool discord_voice_client::handle_frame(const std::string &data, ws_opcode opcod case voice_client_dave_mls_proposals: { log(ll_debug, "voice_client_dave_mls_proposals"); - std::optional> response = mls_state->dave_session->process_proposals(dave_header.get_data(data.length()), dave_mls_user_list); + std::optional> response = mls_state->dave_session->process_proposals(dave_header.get_data(), dave_mls_user_list); if (response.has_value()) { auto r = response.value(); mls_state->cached_commit = r; @@ -94,7 +94,7 @@ bool discord_voice_client::handle_frame(const std::string &data, ws_opcode opcod case voice_client_dave_mls_welcome: { this->mls_state->transition_id = dave_header.get_transition_id(); log(ll_debug, "voice_client_dave_mls_welcome with transition id " + std::to_string(this->mls_state->transition_id)); - auto r = mls_state->dave_session->process_welcome(dave_header.get_data(data.length()), dave_mls_user_list); + auto r = mls_state->dave_session->process_welcome(dave_header.get_data(), dave_mls_user_list); if (r.has_value()) { for (const auto& user : dave_mls_user_list) { log(ll_debug, "Setting decryptor key ratchet for user: " + user + ", protocol version: " + std::to_string(mls_state->dave_session->get_protocol_version()));