1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

refactor(MessageNotifier): apply changes required by framework

This commit is contained in:
tsrk 2023-08-21 15:29:41 +02:00
parent 548e6dc23b
commit bdac052631
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6

View File

@ -127,7 +127,7 @@ namespace osu.Game.Online.Chat
if (!notifyOnPrivateMessage.Value || channel.Type != ChannelType.PM)
return false;
(host as DesktopGameHost)?.FlashWindow();
host.Window?.Flash();
notifications.Post(new PrivateMessageNotification(message, channel));
return true;
@ -137,7 +137,7 @@ namespace osu.Game.Online.Chat
{
if (!notifyOnUsername.Value || !CheckContainsUsername(message.Content, localUser.Value.Username)) return;
(host as DesktopGameHost)?.FlashWindow();
host.Window?.Flash();
notifications.Post(new MentionNotification(message, channel));
}