1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 07:49:54 +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
Unverified
parent 4f36bc0fd3
commit 7cc388b5ab
+4
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;