[Telepathy-commits] [telepathy-qt4/master] Channel: Skip membersChanged signal if nothing really changed.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Sat Feb 7 08:34:37 PST 2009
---
TelepathyQt4/Client/channel.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/Client/channel.cpp b/TelepathyQt4/Client/channel.cpp
index 6e608cb..a0de775 100644
--- a/TelepathyQt4/Client/channel.cpp
+++ b/TelepathyQt4/Client/channel.cpp
@@ -1746,6 +1746,12 @@ void Channel::onMembersChanged(const QString &message,
return;
}
+ if (added.isEmpty() && removed.isEmpty() &&
+ localPending.isEmpty() && remotePending.isEmpty()) {
+ debug() << "Nothing really changed, so skipping membersChanged";
+ return;
+ }
+
mPriv->groupMembersChangedQueue.enqueue(
new Private::GroupMembersChangedInfo(message, added, removed,
localPending, remotePending, actor, reason));
--
1.5.6.5
More information about the telepathy-commits
mailing list