Added desktop notification option for subscription requests

closes #166
This commit is contained in:
James Booth
2013-04-27 23:46:49 +01:00
parent 04c6f2d7b0
commit 441422ddc8
6 changed files with 63 additions and 1 deletions

View File

@@ -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)
{

View File

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