From dd43c6256c143e9e6a479e024cb5b7631027efba Mon Sep 17 00:00:00 2001 From: Artem Savkov Date: Fri, 27 Mar 2015 22:23:42 -0300 Subject: Gmail notifications support through new imcb_notify_email() API --- protocols/bee_user.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'protocols/bee_user.c') diff --git a/protocols/bee_user.c b/protocols/bee_user.c index 2eb24997..562b31b3 100644 --- a/protocols/bee_user.c +++ b/protocols/bee_user.c @@ -270,6 +270,15 @@ void imcb_buddy_msg(struct im_connection *ic, const char *handle, const char *ms } } +void imcb_notify_email(struct im_connection *ic, const char *handle, char *msg, uint32_t flags, time_t sent_at) +{ + if (handle != NULL) { + imcb_buddy_msg(ic, handle, msg, flags, sent_at); + } else { + imcb_log(ic, "%s", msg); + } +} + void imcb_buddy_typing(struct im_connection *ic, const char *handle, uint32_t flags) { bee_user_t *bu; -- cgit v1.2.3