BareRTC/pkg
Noah Petherbridge 885adda156 Echo Public Channel Messages
Add a feature where recent public channel messages can be echoed back to
newly joining users when they enter the chat room.

* Configure in settings.toml with EchoMessagesOnJoin. 0 = disable storage.
* Messages are stored in RAM and lost on a server reboot.
* A buffer of recent public messages per channel can be kept, e.g. for the
  10 most recent messages.
* The settings can be reloaded with /reconfigure and the message buffers
  will rebalance on the next message sent.
* When a new user logs in, a new "echo" message is sent that contains all
  of the echoed messages on a "messages" list, in one WebSocket packet.
* Echoed messages are put above the ChatServer welcome messages.
* If a message is taken back, it's removed from the echo message buffer.

Other Changes

* Don't broadcast Presence messages within 30 seconds of the server boot, to
  lessen a flood of messages when a lot of users were connected at reboot.
* Change the default "Join messages" setting on front-end to hide them in
  public channels.
* For the admin buttons in ProfileModal, use the AlertModal instead of native
  browser prompts.
2025-02-17 22:08:25 -08:00
..
config Echo Public Channel Messages 2025-02-17 22:08:25 -08:00
jwt Moderator rule: nodvd (exempt from dark video detector) 2025-01-03 23:15:05 -08:00
log
messages Echo Public Channel Messages 2025-02-17 22:08:25 -08:00
models History Modal + Dark Detector Fixes 2025-02-14 18:12:39 -08:00
util
api.go History Modal + Dark Detector Fixes 2025-02-14 18:12:39 -08:00
banned_users.go
commands.go Send admin reports on /nsfw command + Fixes 2025-02-17 12:50:06 -08:00
config.go
echo_messages.go Echo Public Channel Messages 2025-02-17 22:08:25 -08:00
expand_media.go
handlers.go Echo Public Channel Messages 2025-02-17 22:08:25 -08:00
images.go
logging.go
markdown.go
message_filters.go Include DM context in reported messages 2024-01-20 15:17:02 -08:00
moderation_rules.go Moderator rule: nodvd (exempt from dark video detector) 2025-01-03 23:15:05 -08:00
pages.go Add webcam troubleshooting tips to the About page 2024-10-17 20:13:08 -07:00
polling_api.go Add DisconnectNow API endpoint 2024-03-15 15:59:42 -07:00
server.go Echo Public Channel Messages 2025-02-17 22:08:25 -08:00
subscriber.go Echo Public Channel Messages 2025-02-17 22:08:25 -08:00
webhook_messages.go
webhooks.go Send admin reports on /nsfw command + Fixes 2025-02-17 12:50:06 -08:00
websocket.go JWT Token Chat Moderation Rules 2024-09-19 17:29:08 -07:00