How to connect to private chat channel and trigger webhooks

I am having trouble connecting to private chat channels in such a way that the webhooks are called. I am able to use private chat easily using the GetPrivateChannelNameByUser method, but subscribing to these channels always seems to create a public channel separately from the private channel used in these conversations. The private message handler method itself works fine and is able to trigger the publish webhook, but I can't find a way to make it trigger the create or destroy webhooks. How is one supposed to do this?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @zelena,

    Thank you for choosing Photon!

    You do not need to subscribe to private channels.
    If you want to send a private message to a user just send that message without the need to subscribe to any channel. Channel subscription is done implicitly server side for you.
    Also by design and for consistency "PathChannelCreate" and "PathChannelDestory" webhooks are not triggered for private channels.