1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

IRCClient: Post desktop notifications when messaged while inactive

If you receive a channel or query message while the app is inactive,
or while the channel/query is inactive, we now post a desktop
notification so you can learn that something is happening. :^)
This commit is contained in:
Andreas Kling 2020-03-26 20:11:23 +01:00
parent 96c7e2cd6d
commit 163812df97
4 changed files with 25 additions and 4 deletions

View file

@ -56,7 +56,7 @@ void IRCQuery::dump() const
void IRCQuery::add_message(char prefix, const String& name, const String& text, Color color)
{
log().add_message(prefix, name, text, color);
window().did_add_message();
window().did_add_message(name, text);
}
void IRCQuery::say(const String& text)