Added desktop notification option for subscription requests
closes #166
This commit is contained in:
@@ -92,6 +92,15 @@ notify_message(const char * const short_from)
|
||||
_notify(message, 10000, "Incoming message");
|
||||
}
|
||||
|
||||
void
|
||||
notify_subscription(const char * const from)
|
||||
{
|
||||
GString *message = g_string_new("Subscription request: \n");
|
||||
g_string_append(message, from);
|
||||
_notify(message->str, 10000, "Incomming message");
|
||||
g_string_free(message, FALSE);
|
||||
}
|
||||
|
||||
void
|
||||
notify_remind(void)
|
||||
{
|
||||
|
||||
@@ -28,3 +28,4 @@ void notify_message(const char * const short_from);
|
||||
void notify_remind(void);
|
||||
void notify_invite(const char * const from, const char * const room,
|
||||
const char * const reason);
|
||||
void notify_subscription(const char * const from);
|
||||
|
||||
Reference in New Issue
Block a user