my OnPrivateMessage() called when ever i send message to other users

public void OnPrivateMessage(string sender, object message, string channelName)


  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @talhaakbar8787_89,

    Thank you for choosing Photon!

    Photon Chat is a publish/subscribe system that let you broadcast messages into subscribed channels. The private channel is just an exception of 1-to-1 type.

    So to answer your question, the OnPrivateMessage callback firing is expected whenever you send private message as you are actually broadcasting it and you should receive your own message yourself. So just ignore it or skip it or consider it as an ACK.