From 40962dc5008b43e0b61e418e7257536afc08e938 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Tue, 17 Dec 2013 14:18:27 +0200 Subject: [PATCH] purple: update purple-notify for 3.x.x API --- src/purple/purple-notify.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/purple/purple-notify.c b/src/purple/purple-notify.c index 06b5e00e..8d98315a 100644 --- a/src/purple/purple-notify.c +++ b/src/purple/purple-notify.c @@ -27,6 +27,11 @@ #include "conversation.h" #include "notify.h" +#include "version.h" +#if PURPLE_VERSION_CHECK(3,0,0) +#include "conversations.h" +#endif + #include "sipe-backend.h" #include "sipe-core.h" @@ -44,7 +49,11 @@ static void notify_message(struct sipe_core_public *sipe_public, if (backend_session) { conv = (PurpleConversation *) backend_session; } else { +#if PURPLE_VERSION_CHECK(3,0,0) + conv = (PurpleConversation *) purple_conversations_find_im_with_account( +#else conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY, +#endif who, purple_private->account); } -- 2.11.4.GIT