Keep one hour of chat

Hi everybody, I start with photon chat, and I noticed that conversations are erased each time I disconnect and reconnect. How could I keep chat for one hour ? So, I can't loose conversations. I want to implement a king of history of conversation and keep it one hour.

Thanks in advance and sorry for this bad English ^^


  • kosted
    edited November 2017
    I notice that if a user 1 send a message in a channel, then disconnet, and a user 2 come after him, and connect to this channel, he can't see the message of user 1. But if user 1 is still connected user 2 can retrieve conversation. How this chat works please ? How could I keep message for a certain time please or keep the connection alive ?
  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @kosted,

    You need to implement Chat Webhooks.

    You can save and load up to 100 of last messages published inside a public channel.
    Can't persist private channel messages out of the box yet.
  • Thanks a lot @JohnTube. I notice also that when i comment
        public void OnApplicationQuit()
    		if (this.chatClient != null)
    I can keep messages for a certain time, like 1 hour.
    I'm going to implement webhook to have a saving system.