mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 14:16:21 +00:00
Added desktop notifications for chat room invites
Use "/notify invite on|off"
This commit is contained in:
@@ -65,6 +65,19 @@ notify_typing(const char * const from)
|
||||
_notify(message, 10000, "Incoming message");
|
||||
}
|
||||
|
||||
void
|
||||
notify_invite(const char * const from, const char * const room)
|
||||
{
|
||||
GString *message = g_string_new("Room invite\nfrom: ");
|
||||
g_string_append(message, from);
|
||||
g_string_append(message, "\nto: ");
|
||||
g_string_append(message, room);
|
||||
|
||||
_notify(message->str, 10000, "Incoming message");
|
||||
|
||||
g_string_free(message, FALSE);
|
||||
}
|
||||
|
||||
void
|
||||
notify_message(const char * const short_from)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user