Skip to content

A platform for community discussion. Free, open, simple.

FIX: delay chat notify watching job (#28386)

David Battersbye16f22c3721f
diff --git a/plugins/chat/lib/chat/notifier.rb b/plugins/chat/lib/chat/notifier.rb
index a671b43e835..0d94c0c6423 100644
--- a/plugins/chat/lib/chat/notifier.rb
+++ b/plugins/chat/lib/chat/notifier.rb
@@ -370,7 +370,8 @@ module Chat
end
def notify_watching_users(except: [])
- Jobs.enqueue(
+ Jobs.enqueue_in(
+ 5.seconds,
Jobs::Chat::NotifyWatching,
{ chat_message_id: @chat_message.id, except_user_ids: except, timestamp: @timestamp.to_s },
)