feat(MessageNotifier): flash window on PM or mention

This commit is contained in:
tsrk 2023-08-19 03:04:09 +02:00
parent f51e2a92a1
commit 548e6dc23b
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6

View File

@ -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));
}