Handle channel joins

This commit is contained in:
Dan Balasescu 2022-11-04 20:11:42 +09:00
parent f12ada9d92
commit d426977f03

View File

@ -113,6 +113,15 @@ namespace osu.Game.Online.Notifications.WebSocket
{ {
switch (message.Event) switch (message.Event)
{ {
case @"chat.channel.join":
Debug.Assert(message.Data != null);
Channel? joinedChannel = JsonConvert.DeserializeObject<Channel>(message.Data.ToString());
Debug.Assert(joinedChannel != null);
HandleJoinedChannel(joinedChannel);
break;
case @"chat.message.new": case @"chat.message.new":
Debug.Assert(message.Data != null); Debug.Assert(message.Data != null);