Sign In Register

How can we help you today?

Start a new topic
Answered

Friend Message

Hi,


Im trying to use the message system is GS. I send Message requests to friends and responses, as well as able to list them but im having trouble accessing the messages themselves from specific users. 


This is what im using, and i get nothing in return.

    

new ListMessageRequest().Send((deetResponse)=>{		
foreach (var messages in deetResponse.MessageList){

if (messages.GetString("FromId").ToString() == challenge.Challenger.Id){	
									did = messages.GetString("message").ToString();
						Debug.Log(messages.GetString("FromId").ToString());
								Debug.Log(did);
								}}});

    


Best Answer

Hi Test,


Your code looks right, the only reason I can think of is that not all messages have a FromId. Are you using "ChatOnChallengeRequest" to send the messages or "SendFriendMessageRequest"?


Shane

1 Comment

Answer

Hi Test,


Your code looks right, the only reason I can think of is that not all messages have a FromId. Are you using "ChatOnChallengeRequest" to send the messages or "SendFriendMessageRequest"?


Shane

Login to post a comment