Skip to content

Commit

Permalink
fix type for process_mls_group_rosters
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 14, 2024
1 parent 5fa9101 commit a7262d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion include/dpp/discordvoiceclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,8 @@ class DPP_EXPORT discord_voice_client : public websocket_client
* Fires Voice Ready event when appropriate.
*
* https://daveprotocol.com/#commit-handling
*
* @param data Websocket frame data
*/
void ready_for_transition(const std::string &data);

Expand All @@ -1232,8 +1234,9 @@ class DPP_EXPORT discord_voice_client : public websocket_client

/**
* @brief Process roster map from commit/welcome.
* @param rmap Roster map
*/
void process_mls_group_rosters(const std::map<unsigned long, std::vector<unsigned char>> &rmap);
void process_mls_group_rosters(const std::map<uint64_t, std::vector<uint8_t>>& rmap);
};

} // namespace dpp
Expand Down
4 changes: 2 additions & 2 deletions src/dpp/voice/enabled/handle_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,9 @@ void discord_voice_client::ready_for_transition(const std::string &data) {
this->write(obj.dump(-1, ' ', false, json::error_handler_t::replace), OP_TEXT);
this->mls_state->pending_transition.id = this->mls_state->transition_id;

/* When the included transition ID is 0, the transition is for (re)initialization and it can be executed immediately. */
/* When the included transition ID is 0, the transition is for (re)initialization, and it can be executed immediately. */
if (this->mls_state->transition_id == 0) {
/* Mark state ready and update rachets the first time */
/* Mark state ready and update ratchets the first time */
update_ratchets();
}

Expand Down

0 comments on commit a7262d7

Please sign in to comment.