[ekiga] Fix recently introduced bug on presence
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Fix recently introduced bug on presence
- Date: Mon, 16 Nov 2015 14:41:55 +0000 (UTC)
commit 6f4163f89ad3f5ca65811011d9fd0164f88dce0f
Author: Eugen Dedu <eugen dedu univ-fcomte fr>
Date: Mon Nov 16 15:40:11 2015 +0100
Fix recently introduced bug on presence
At ekiga start, our presence was always sent as available instead of busy
or away. Also, remove superflous SetLocalPresence call.
lib/engine/components/opal/opal-account.cpp | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 118c179..4fe9190 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -1060,10 +1060,6 @@ Opal::Account::handle_registration_event (Ekiga::Account::RegistrationState stat
state = state_;
failed_registration_already_notified = false;
- boost::shared_ptr<Ekiga::PersonalDetails> details = personal_details.lock ();
- if (details)
- const_cast<Account*>(this)->publish (*details);
-
if (opal_presentity) {
opal_presentity->SetPresenceChangeNotifier (PCREATE_PresenceChangeNotifier (OnPresenceChange));
@@ -1081,11 +1077,12 @@ Opal::Account::handle_registration_event (Ekiga::Account::RegistrationState stat
++iter)
fetch ((*iter)->get_uri());
- opal_presentity->SetLocalPresence (personal_state, presence_status);
- if (type != Account::H323 && sip_endpoint) {
+ if (type != Account::H323 && sip_endpoint)
sip_endpoint->Subscribe (SIPSubscribe::MessageSummary, 3600, get_full_uri (get_aor ()));
- }
}
+ boost::shared_ptr<Ekiga::PersonalDetails> details = personal_details.lock ();
+ if (details)
+ const_cast<Account*>(this)->publish (*details);
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]