Another solution is to store the data on all users machines and sync it when they get online together, something like CRDT can help en.wikipedia.org/wiki/Conflict-fre...
that means you'll keep all the history in all peers machines so you'll have offline search and it's secure as Webrtc connection is already secured, no need for a server to keep the messages at all.
That would be a good solution. Or you could use IPFS. My biggest problem with WebRTC is that the ICE Servers get blocked on 3g/4g and I would to have to work around with websocket, then I can just use a centralized service. But look for yourself: peerweb.site/ (it's not a chat but a p2p hosting, chat could be built on top though)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Another solution is to store the data on all users machines and sync it when they get online together, something like CRDT can help
en.wikipedia.org/wiki/Conflict-fre...
that means you'll keep all the history in all peers machines so you'll have offline search and it's secure as Webrtc connection is already secured, no need for a server to keep the messages at all.
Fascinating!
That would be a good solution. Or you could use IPFS. My biggest problem with WebRTC is that the ICE Servers get blocked on 3g/4g and I would to have to work around with websocket, then I can just use a centralized service. But look for yourself: peerweb.site/ (it's not a chat but a p2p hosting, chat could be built on top though)