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:
parent
548e6dc23b
commit
bdac052631
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user