mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Mark channel up to last message as read when switching channels
This commit is contained in:
@ -279,6 +279,10 @@ namespace osu.Game.Overlays
|
|||||||
currentChannelContainer.Clear(false);
|
currentChannelContainer.Clear(false);
|
||||||
currentChannelContainer.Add(loaded);
|
currentChannelContainer.Add(loaded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// mark channel as read when channel switched
|
||||||
|
if (e.NewValue.Messages.Any())
|
||||||
|
channelManager.MarkChannelAsRead(e.NewValue.Messages.Last());
|
||||||
}
|
}
|
||||||
|
|
||||||
private float startDragChatHeight;
|
private float startDragChatHeight;
|
||||||
|
Reference in New Issue
Block a user