mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 20:05:29 +08:00
feat(MessageNotifier): flash window on PM or mention
This commit is contained in:
parent
f51e2a92a1
commit
548e6dc23b
@ -127,6 +127,8 @@ namespace osu.Game.Online.Chat
|
|||||||
if (!notifyOnPrivateMessage.Value || channel.Type != ChannelType.PM)
|
if (!notifyOnPrivateMessage.Value || channel.Type != ChannelType.PM)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
(host as DesktopGameHost)?.FlashWindow();
|
||||||
|
|
||||||
notifications.Post(new PrivateMessageNotification(message, channel));
|
notifications.Post(new PrivateMessageNotification(message, channel));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -135,6 +137,8 @@ namespace osu.Game.Online.Chat
|
|||||||
{
|
{
|
||||||
if (!notifyOnUsername.Value || !CheckContainsUsername(message.Content, localUser.Value.Username)) return;
|
if (!notifyOnUsername.Value || !CheckContainsUsername(message.Content, localUser.Value.Username)) return;
|
||||||
|
|
||||||
|
(host as DesktopGameHost)?.FlashWindow();
|
||||||
|
|
||||||
notifications.Post(new MentionNotification(message, channel));
|
notifications.Post(new MentionNotification(message, channel));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user