mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:07:38 +08:00
Stop requesting messages as part of initial chat presence
This commit is contained in:
parent
4a79141824
commit
5c640d15a0
@ -25,6 +25,7 @@ namespace osu.Game.Online.API.Requests
|
||||
var req = base.CreateWebRequest();
|
||||
if (channel != null) req.AddParameter(@"channel", channel.Id.ToString());
|
||||
req.AddParameter(@"since", since.ToString());
|
||||
req.AddParameter(@"includes[]", "presence");
|
||||
|
||||
return req;
|
||||
}
|
||||
|
@ -67,8 +67,11 @@ namespace osu.Game.Online.Notifications
|
||||
|
||||
protected void HandleChannelParted(Channel channel) => ChannelParted?.Invoke(channel);
|
||||
|
||||
protected void HandleMessages(List<Message> messages)
|
||||
protected void HandleMessages(List<Message>? messages)
|
||||
{
|
||||
if (messages == null)
|
||||
return;
|
||||
|
||||
NewMessages?.Invoke(messages);
|
||||
lastMessageId = Math.Max(lastMessageId, messages.LastOrDefault()?.Id ?? 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user