From 952371e6a8a98291423dd0f8165cc9daa0437210 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Thu, 18 Feb 2010 13:53:19 +0200 Subject: [PATCH] presence: always process "presence" notify events Make sure we process a resubscription notify even when the subscription state says "terminated". Otherwise buddies will appear offline. --- src/core/sipe.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/sipe.c b/src/core/sipe.c index 0f599fe1..7ea2259d 100644 --- a/src/core/sipe.c +++ b/src/core/sipe.c @@ -6591,6 +6591,10 @@ static void process_incoming_notify(struct sipe_account_data *sip, struct sipmsg { sipe_process_provisioning(sip, msg); } + else if (!g_ascii_strcasecmp(event, "presence")) + { + sipe_process_presence(sip, msg); + } else if (!g_ascii_strcasecmp(event, "registration-notify")) { sipe_process_registration_notify(sip, msg); @@ -6598,11 +6602,7 @@ static void process_incoming_notify(struct sipe_account_data *sip, struct sipmsg if (!subscription_state || strstr(subscription_state, "active")) { - if (!g_ascii_strcasecmp(event, "presence")) - { - sipe_process_presence(sip, msg); - } - else if (!g_ascii_strcasecmp(event, "vnd-microsoft-roaming-contacts")) + if (!g_ascii_strcasecmp(event, "vnd-microsoft-roaming-contacts")) { sipe_process_roaming_contacts(sip, msg); } -- 2.11.4.GIT