discourse/plugins/chat/app/serializers/chat_channel_index_serializer.rb
Roman Rizzi 0a5f548635
DEV: Move discourse-chat to the core repo. (#18776)
As part of this move, we are also renaming `discourse-chat` to `chat`.
2022-11-02 10:41:30 -03:00

10 lines
278 B
Ruby

# frozen_string_literal: true
class ChatChannelIndexSerializer < StructuredChannelSerializer
attributes :global_presence_channel_state
def global_presence_channel_state
PresenceChannelStateSerializer.new(PresenceChannel.new("/chat/online").state, root: nil)
end
end