mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:48:04 +08:00
0a5f548635
As part of this move, we are also renaming `discourse-chat` to `chat`.
10 lines
278 B
Ruby
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
|