Missing Information in Message Sent - Photon Chat

dibset
dibset
edited January 2 in Photon Chat

Hi, I created a Struct Messagecontainer to send a message with Photon Chat like this :

public struct MessageContainer
  { public MessageType messageType;
    public string senderUserName;
    public string partyLeader;
    public string message;
    public string room;
    public string gameMode;
  }

The thing is when I send the message and check the information before sending with a Debug.Log, everything is in the message. Example :

senderUserName : "me"

partyLeader: "MyID"

message : "You have been invited to join a party"

room : "ABCD"

gameMode : "1VS1"


But when the other player receives the message via OnPrivateMessage, he only receives a portion of the message....

it shows on Debug.Log :

senderUserName : "me"

partyLeader: "MyID"

message : "You have been invited to join a party"

room : null

gameMode : null


is there a limit of strings when sending a message with Photon Chat?


Thanks

Best Answer

  • JohnTube
    JohnTube mod
    Accepted Answer

    Hi @dibset,

    I'm assuming you registered the custom type as shown here?

    In any case we don't modify or alter the data you send.

    So I would double check the client code to make sure all is good.

Answers

  • JohnTube
    JohnTube mod
    Accepted Answer

    Hi @dibset,

    I'm assuming you registered the custom type as shown here?

    In any case we don't modify or alter the data you send.

    So I would double check the client code to make sure all is good.