Closed rpvela closed 2 years ago
RTClient->removeMatchmakerParty
calls wrong API method. Currently it is exact copy of RTClient->removeMatchmaker
and doesn't accept PartyID as an argument.
@rpvela, would you be able to test a fix from the nakama-cpp branch before we cut new release?
Fix is in https://github.com/heroiclabs/nakama-cpp/tree/party-mm-remove-fix branch
Thanks! I will take a look at it, and makes sense
Can confirm this fixed the issue on our end! @redbaron
Description
Using nakama C wrapper in nakama's CPP client produces an error when trying to cancel matchmaking using the same session. Debugger output when running local nakama suggests that the matchmaking handler expects the Party ID or Session ID to be present, exclusively -- not both at the same time.
What's the expected flow here? Are we using wrong session to initiate/cancel the matchmaking?
Steps to Reproduce
Using C NakamaWrapper
This is the same client using the weak pointer to the NRtClientInterface
Debugger:
The function that errors is here https://github.com/heroiclabs/nakama/blob/df2e6bfc1652671ebea2644cff165a22c312fb1d/server/matchmaker.go#L541
Overriding the session ID makes the match cancel properly https://github.com/rpvela/nakama/commit/3ec6e0cba87ae9f36456512bdbbcee3081764a57
Expected Result
Actual Result
Context
Your Environment