Skip to content

Commit

Permalink
doesnt work yet
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Sep 28, 2024
1 parent 4dab53c commit 9853031
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dpp/discordvoiceclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,11 @@ bool discord_voice_client::handle_frame(const std::string &data, ws_opcode opcod
});
transient_key = std::make_unique<dave_transient_key>();
dave_session->Init(dave::MaxSupportedProtocolVersion(), channel_id, creator->me.id.str(), transient_key->mls_key);

auto key_response = dave_session->GetMarshalledKeyPackage();
key_response.insert(key_response.begin(), voice_client_dave_mls_key_package);
this->write(std::string_view(reinterpret_cast<const char*>(key_response.data()), key_response.size()), OP_BINARY);

}
} else {
/* This is needed to start voice receiving and make sure that the start of sending isn't cut off */
Expand Down

0 comments on commit 9853031

Please sign in to comment.