1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 10:33:07 +08:00

Mark channel up to last message as read when switching channels

This commit is contained in:
Craftplacer 2020-01-04 00:50:12 +01:00
parent 4f36bc0fd3
commit 7cc388b5ab

View File

@ -279,6 +279,10 @@ namespace osu.Game.Overlays
currentChannelContainer.Clear(false);
currentChannelContainer.Add(loaded);
}
// mark channel as read when channel switched
if (e.NewValue.Messages.Any())
channelManager.MarkChannelAsRead(e.NewValue.Messages.Last());
}
private float startDragChatHeight;