heroiclabs / nakama-unreal

Unreal client for Nakama server.
Apache License 2.0
200 stars 61 forks source link

UNakamaRealtimeClient::PartyDataReceived delegate doesn't work #87

Closed GregoryBolshakov closed 1 year ago

GregoryBolshakov commented 1 year ago

If I add some function to the PartyDataReceived delegate, it is never called.

I do it in this way:

FOnReceivedPartyData ReceivedPartyDataDelegate;
ReceivedPartyDataDelegate.AddDynamic(this, &UNakamaManager::OnPartyDataReceived);

NakamaRealtimeClient->PartyDataReceived = ReceivedPartyDataDelegate;
NakamaRealtimeClient->SetListenerPartyDataCallback();

Then I call NakamaRealtimeClient->SendPartyData() with a valid party id. NakamaRealtimeClient is set up and authorized properly, but OnPartyDataReceived isn't called

lugehorsam commented 1 year ago

Hey @GregoryBolshakov is the client doing the listening for the party data the same client that's sending out the data?

GregoryBolshakov commented 1 year ago

Hi @lugehorsam, Yes, the same

lugehorsam commented 1 year ago

@GregoryBolshakov okay -- that's the issue here. A user cannot send party data to themself.