mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +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)
|
if (updates?.Presence != null)
|
||||||
{
|
{
|
||||||
foreach (var channel in updates.Presence)
|
foreach (var channel in updates.Presence)
|
||||||
HandleJoinedChannel(channel);
|
HandleChannelJoined(channel);
|
||||||
|
|
||||||
//todo: handle left channels
|
//todo: handle left channels
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ namespace osu.Game.Online.Notifications
|
|||||||
return fetchReq;
|
return fetchReq;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void HandleJoinedChannel(Channel channel)
|
protected void HandleChannelJoined(Channel channel)
|
||||||
{
|
{
|
||||||
channel.Joined.Value = true;
|
channel.Joined.Value = true;
|
||||||
ChannelJoined?.Invoke(channel);
|
ChannelJoined?.Invoke(channel);
|
||||||
|
@ -123,7 +123,7 @@ namespace osu.Game.Online.Notifications.WebSocket
|
|||||||
Channel? joinedChannel = JsonConvert.DeserializeObject<Channel>(message.Data.ToString());
|
Channel? joinedChannel = JsonConvert.DeserializeObject<Channel>(message.Data.ToString());
|
||||||
Debug.Assert(joinedChannel != null);
|
Debug.Assert(joinedChannel != null);
|
||||||
|
|
||||||
HandleJoinedChannel(joinedChannel);
|
HandleChannelJoined(joinedChannel);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case @"chat.channel.part":
|
case @"chat.channel.part":
|
||||||
@ -142,7 +142,7 @@ namespace osu.Game.Online.Notifications.WebSocket
|
|||||||
Debug.Assert(messageData != null);
|
Debug.Assert(messageData != null);
|
||||||
|
|
||||||
foreach (var msg in messageData.Messages)
|
foreach (var msg in messageData.Messages)
|
||||||
HandleJoinedChannel(await getChannel(msg.ChannelId));
|
HandleChannelJoined(await getChannel(msg.ChannelId));
|
||||||
|
|
||||||
HandleMessages(messageData.Messages);
|
HandleMessages(messageData.Messages);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user