mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-24 22:56:48 +09:00
Reuse token-free message controls and render posting deliveries once
This commit is contained in:
1 parent
e55b6dc3e5
commit
2c53c46767
11 files changed
+66
-10
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user