mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +08:00
Rename method for consistency
This commit is contained in:
parent
67e99b5344
commit
fdca3c2d1c
@ -46,7 +46,7 @@ namespace osu.Game.Online.Notifications
|
||||
if (updates?.Presence != null)
|
||||
{
|
||||
foreach (var channel in updates.Presence)
|
||||
HandleJoinedChannel(channel);
|
||||
HandleChannelJoined(channel);
|
||||
|
||||
//todo: handle left channels
|
||||
|
||||
@ -59,7 +59,7 @@ namespace osu.Game.Online.Notifications
|
||||
return fetchReq;
|
||||
}
|
||||
|
||||
protected void HandleJoinedChannel(Channel channel)
|
||||
protected void HandleChannelJoined(Channel channel)
|
||||
{
|
||||
channel.Joined.Value = true;
|
||||
ChannelJoined?.Invoke(channel);
|
||||
|
@ -123,7 +123,7 @@ namespace osu.Game.Online.Notifications.WebSocket
|
||||
Channel? joinedChannel = JsonConvert.DeserializeObject<Channel>(message.Data.ToString());
|
||||
Debug.Assert(joinedChannel != null);
|
||||
|
||||
HandleJoinedChannel(joinedChannel);
|
||||
HandleChannelJoined(joinedChannel);
|
||||
break;
|
||||
|
||||
case @"chat.channel.part":
|
||||
@ -142,7 +142,7 @@ namespace osu.Game.Online.Notifications.WebSocket
|
||||
Debug.Assert(messageData != null);
|
||||
|
||||
foreach (var msg in messageData.Messages)
|
||||
HandleJoinedChannel(await getChannel(msg.ChannelId));
|
||||
HandleChannelJoined(await getChannel(msg.ChannelId));
|
||||
|
||||
HandleMessages(messageData.Messages);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user