Open anaoaktree opened 10 years ago
:+1:
Every room counts the number of messages it sends. The value of the counter when a message is send is a unique identifier of that message. Everytime a user connects to a room we log his entry saving the value of the counter. Same when he disconnects.
When this user asks for his history in this room, we spawn a HistoryWorker that assembles the user's history in that room based on his log.
Is this worth it? Assuming we will have a web client one day, the user after connecting to a room can scroll through all messages. So this would only be used by telnet client and the only way we could send him the history would be printing all messages in his screen, which is not pleasant. I think this is a nice feature but only for the client, and it should download all the messages from that room.
All messages are stored in the database, show or download the history is pretty easy now.
:facepunch:
:octocat:
:santa:
Show chat history; possibly download chat log