discourse/plugins/chat/app/serializers/chat_channel_index_serializ...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
278 B
Ruby
Raw Normal View History

# 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