mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00: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)
|
||||
return false;
|
||||
|
||||
(host as DesktopGameHost)?.FlashWindow();
|
||||
|
||||
notifications.Post(new PrivateMessageNotification(message, channel));
|
||||
return true;
|
||||
}
|
||||
@ -135,6 +137,8 @@ namespace osu.Game.Online.Chat
|
||||
{
|
||||
if (!notifyOnUsername.Value || !CheckContainsUsername(message.Content, localUser.Value.Username)) return;
|
||||
|
||||
(host as DesktopGameHost)?.FlashWindow();
|
||||
|
||||
notifications.Post(new MentionNotification(message, channel));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user