[ekiga] Made Opal::Account directly publish
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Made Opal::Account directly publish
- Date: Sun, 11 Aug 2013 17:09:19 +0000 (UTC)
commit d0f3102ccc51736c6e250113053edee919e5ac5b
Author: Julien Puydt <jpuydt free fr>
Date: Sun Aug 11 19:08:01 2013 +0200
Made Opal::Account directly publish
We were previously going up to the Ekiga::PresenceCore,
and hence republishing presence for everything... that was a bit too much!
lib/engine/components/opal/opal-account.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 0b64418..80c442d 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -701,10 +701,9 @@ Opal::Account::handle_registration_event (RegistrationState state_,
sip_endpoint->Subscribe (SIPSubscribe::MessageSummary, 3600, get_aor ());
}
}
- boost::shared_ptr<Ekiga::PresenceCore> pcore = presence_core.lock ();
boost::shared_ptr<Ekiga::PersonalDetails> details = personal_details.lock ();
- if (pcore && details)
- pcore->publish (details);
+ if (details)
+ const_cast<Account*>(this)->publish (*details);
state = state_;
failed_registration_already_notified = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]