Initial commit

This commit is contained in:
Craftplacer
2020-01-02 17:07:28 +01:00
parent 9f5f78e443
commit 7b71e56817
3 changed files with 37 additions and 0 deletions

View File

@ -445,6 +445,14 @@ namespace osu.Game.Online.Chat
return tcs.Task;
}
public void MarkChannelAsRead(Message message)
{
var channel = JoinedChannels.First(c => c.Id == message.ChannelId);
var req = new MarkChannelAsReadRequest(channel, message);
req.Success += () => channel.LastReadId = message.Id;
api.Queue(req);
}
[BackgroundDependencyLoader]
private void load(IAPIProvider api)
{