Chat message per sender
Hello everyone, I've been using Photon for my studio for like 8 months, subbed to the 100 CCU also. Must say, Photon is really amazing.

I have been using Photon Chat as well but in the standard/traditional way just like the tutorial and demo. Now my game is using chat bubbles for displaying chat messages. I can't seem to find any way to create this, because as I see in the docs, PhotonChat Messages are in Dictionary of Dictionary<string, ChatChannel> PublicChannels. What I need is to get separate messages with their respective sender/owner. So I can instantiate the chat bubble according to who is the sender/owner.
Short version, how to get individual message + owner so I can create individual chat bubbles?

I have been using Photon Chat as well but in the standard/traditional way just like the tutorial and demo. Now my game is using chat bubbles for displaying chat messages. I can't seem to find any way to create this, because as I see in the docs, PhotonChat Messages are in Dictionary of Dictionary<string, ChatChannel> PublicChannels. What I need is to get separate messages with their respective sender/owner. So I can instantiate the chat bubble according to who is the sender/owner.
Short version, how to get individual message + owner so I can create individual chat bubbles?
0
Comments
Thank you for choosing Photon and for your kind words!
each Photon Chat Channel in the C# SDKs contains the list of received messages as a list and respective list for the senders' UserIDs.
For per message you can get the content and sender as follows:
Otherwise you could get the messages from the callbacks:
or
This is how I did it for anyone who is interested: