services/presence/server_plugin: Don't watch MembersChanged in activities.

My plan is now to do this in the Activity class, once the PS has a reliable
way to map handles to buddies.
This commit is contained in:
Simon McVittie 2007-05-28 15:56:39 +01:00
parent aad2afdae2
commit 706830c489

View File

@ -1011,15 +1011,6 @@ class ServerPlugin(gobject.GObject):
else:
return
def members_changed(message, added, removed, local_pending,
remote_pending, actor, reason):
# FIXME: if contacts were added, who don't have this
# activity in their PEP node for whatever reason, then
# emit buddy-activities-changed for them (otherwise they
# could be in an activity while pretending they weren't,
# which would be crazy)
pass
def got_all_members(current, local_pending, remote_pending):
if local_pending:
for act_id, act_handle in self._activities.iteritems():
@ -1029,10 +1020,7 @@ class ServerPlugin(gobject.GObject):
logger.debug('Unable to get channel members for %s:',
object_path, exc_info=1)
# hook the MembersChanged signal so we get told when people
# join/leave
group = channel[CHANNEL_INTERFACE_GROUP]
group.connect_to_signal('MembersChanged', members_changed)
group.GetAllMembers(reply_handler=got_all_members,
error_handler=got_all_members_err)