diff --git a/plugins/chat/app/services/chat/auto_join_channel_batch.rb b/plugins/chat/app/services/chat/auto_join_channel_batch.rb index 7337835f48a..bc5375e9472 100644 --- a/plugins/chat/app/services/chat/auto_join_channel_batch.rb +++ b/plugins/chat/app/services/chat/auto_join_channel_batch.rb @@ -62,7 +62,7 @@ module Chat end def publish_new_channel(channel:, added_user_ids:, **) - ::Chat::Publisher.publish_new_channel(channel.reload, User.where(id: added_user_ids)) + ::Chat::Publisher.publish_new_channel(channel, User.where(id: added_user_ids)) end end end