downforacross / downforacross.com

Web frontend for downforacross.com -- continuation of stevenhao/crosswordsio
https://downforacrosscom.downforacross1.now.sh
MIT License
229 stars 90 forks source link

Disappear chat after game #166

Open J6Taylor opened 3 years ago

J6Taylor commented 3 years ago

It would be a nice privacy feature if chat messages were only visible to players present when the messages were sent, i.e., if old chats don't load for a new user.

stevenhao commented 3 years ago

That's a good idea. Will think about how we could do this -- perhaps a new mode that's "disappearing chat mode"

ZeikJT commented 3 years ago

Would be nice as an option, but otherwise it's good for new people to be able to see hints and deductions made in the past.

carlyrobison commented 3 years ago

With sockets, you can push new messages to currently connected players, and the currently connected players can store the chat browser-side. Refreshing will clear the chat window, which is either a feature or a bug of this approach. But this behavior mimics Google Hangouts, Zoom, etc. where the chat is not the focus of the tool.

We should notify users that chat messages will become temporary for a bit (2 weeks?) before we make this change, just to be nice.

I'm not 100% sure how Rooms work, but I feel like the messages associated with a Room should be persistent. But we should ask someone who actually uses that feature.

It's also possible to toggle this feature. I think for sustainability's sake the default should be only connected users.

I think game state transitions should be persistent regardless.