Reuse token-free message controls and render posting deliveries once

This commit is contained in:
GPT on behalf of DHH committed 2026-10-08 11:43:27 +02:00
1 parent e55b6dc3e5
commit 2c53c46767
11 files changed
+66 -10

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
module Message::Broadcasts
def broadcast_create
broadcast_append_to room, :messages, target: [ room, :messages ]
def broadcast_create(html: nil)
broadcast_append_to room, :messages, target: [ room, :messages ], **(html ? { html: html } : {})
broadcast_unread_room_later
end