diff options
author | Artem Savkov <artem.savkov@gmail.com> | 2015-03-27 22:23:42 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-05-28 02:26:24 -0300 |
commit | dd43c6256c143e9e6a479e024cb5b7631027efba (patch) | |
tree | 67d0821bec7564b36de9e33c56630243fd56d069 /protocols/bee_user.c | |
parent | 3d31618b5f50552b71d8c6f1b3fa733a212ee89c (diff) |
Gmail notifications support through new imcb_notify_email() API
Diffstat (limited to 'protocols/bee_user.c')
-rw-r--r-- | protocols/bee_user.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; |