1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 06:23:39 +08:00

refactor(MessageNotifier): apply changes required by framework

This commit is contained in:
tsrk
2023-08-21 15:29:41 +02:00
Unverified
parent 548e6dc23b
commit bdac052631
+2 -2
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));
}