mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:13:20 +08:00
Don't expose "mark as read" errors to the user via notifications
This can happen if the user leaves the channel before the request is fired. You can't mark a channel as read when you're not in the channel. Addresses https://github.com/ppy/osu/discussions/16973.
This commit is contained in:
parent
7302e66c5f
commit
3f6bdc5585
@ -618,7 +618,7 @@ namespace osu.Game.Online.Chat
|
||||
var req = new MarkChannelAsReadRequest(channel, message);
|
||||
|
||||
req.Success += () => channel.LastReadId = message.Id;
|
||||
req.Failure += e => Logger.Error(e, $"Failed to mark channel {channel} up to '{message}' as read");
|
||||
req.Failure += e => Logger.Log($"Failed to mark channel {channel} up to '{message}' as read ({e.Message})", LoggingTarget.Network, LogLevel.Verbose);
|
||||
|
||||
api.Queue(req);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user