1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +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

@ -57,7 +57,7 @@ public:
int unread_count() const;
void clear_unread_count();
void did_add_message();
void did_add_message(const String& name = {}, const String& message = {});
IRCChannel& channel() { return *(IRCChannel*)m_owner; }
const IRCChannel& channel() const { return *(const IRCChannel*)m_owner; }