1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-19 21:43:21 +08:00

Fix "Start Chat" on multiplayer/playlist chat not opening overlay

This commit is contained in:
Salman Ahmed 2022-07-18 06:45:00 +03:00
parent b659e5e6ad
commit b33f8aa0fc

View File

@ -257,10 +257,14 @@ namespace osu.Game.Overlays.Chat
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(UserProfileOverlay? profile, ChannelManager? chatManager) private void load(UserProfileOverlay? profile, ChannelManager? chatManager, ChatOverlay? chatOverlay)
{ {
Action = () => profile?.ShowUser(sender); Action = () => profile?.ShowUser(sender);
startChatAction = () => chatManager?.OpenPrivateChannel(sender); startChatAction = () =>
{
chatManager?.OpenPrivateChannel(sender);
chatOverlay?.Show();
};
} }
public MenuItem[] ContextMenuItems public MenuItem[] ContextMenuItems