Merge pull request #16976 from peppy/dont-expose-mark-as-read-errors-to-user

Don't expose "mark as read" errors to the user via notifications
This commit is contained in:
Dan Balasescu 2022-02-24 23:20:34 +09:00 committed by GitHub
commit 80fc13fc1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ public void MarkChannelAsRead(Channel channel)
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);
api.Queue(req);
}