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 Initial commit 2023-01-10 22:38:48 -08:00
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 A bit more logging to debug WebSocket issues 2023-02-08 20:01:06 -08:00
api.go History Modal + Dark Detector Fixes 2025-02-14 18:12:39 -08:00
banned_users.go Commands: /ban and /op 2023-08-04 20:31:21 -07:00
commands.go Send admin reports on /nsfw command + Fixes 2025-02-17 12:50:06 -08:00
config.go Re-sign JWT tokens for safer server deployments 2023-04-19 19:55:39 -07:00
echo_messages.go Echo Public Channel Messages 2025-02-17 22:08:25 -08:00
expand_media.go YouTube link embeds 2023-03-24 22:47:58 -07:00
handlers.go Echo Public Channel Messages 2025-02-17 22:08:25 -08:00
images.go Photo sharing support 2023-03-21 21:29:24 -07:00
logging.go Fix webcam freezing issues with mutualOpen video connections 2023-11-18 15:38:02 -08:00
markdown.go JWT Token-based Authentication 2023-02-05 17:42:09 -08:00
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 and Report Users 2023-08-12 21:35:41 -07:00
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