[telepathy-qt4/master] ContactManager: Update contacts when contact list group changes.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Wed Jul 22 12:03:54 PDT 2009
---
TelepathyQt4/contact-manager.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/contact-manager.cpp b/TelepathyQt4/contact-manager.cpp
index 3e2fd9d..b8a3a5a 100644
--- a/TelepathyQt4/contact-manager.cpp
+++ b/TelepathyQt4/contact-manager.cpp
@@ -886,7 +886,15 @@ void ContactManager::onContactListGroupMembersChanged(
qobject_cast<Channel*>(sender()));
QString id = contactListGroupChannel->immutableProperties().value(
QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetID")).toString();
+
emit groupChanged(id);
+
+ foreach (const ContactPtr &contact, groupMembersAdded) {
+ contact->setAddedToGroup(id);
+ }
+ foreach (const ContactPtr &contact, groupMembersRemoved) {
+ contact->setRemovedFromGroup(id);
+ }
}
void ContactManager::onContactListGroupRemoved(Tp::DBusProxy *proxy,
--
1.5.6.5
More information about the telepathy-commits
mailing list