Let PresenceService._buddy_activities_changed see all joined activities, even invalid ones
This commit is contained in:
parent
51f56ed7a3
commit
60c9e0ecb8
@ -235,7 +235,8 @@ class Buddy(DBusGObject):
|
|||||||
"""
|
"""
|
||||||
acts = []
|
acts = []
|
||||||
for act in self.get_joined_activities():
|
for act in self.get_joined_activities():
|
||||||
acts.append(act.object_path())
|
if act.props.valid:
|
||||||
|
acts.append(act.object_path())
|
||||||
return acts
|
return acts
|
||||||
|
|
||||||
@dbus.service.method(_BUDDY_INTERFACE,
|
@dbus.service.method(_BUDDY_INTERFACE,
|
||||||
@ -313,8 +314,7 @@ class Buddy(DBusGObject):
|
|||||||
"""Retrieves list of still-valid activity objects"""
|
"""Retrieves list of still-valid activity objects"""
|
||||||
acts = []
|
acts = []
|
||||||
for act in self._activities.values():
|
for act in self._activities.values():
|
||||||
if act.props.valid:
|
acts.append(act)
|
||||||
acts.append(act)
|
|
||||||
return acts
|
return acts
|
||||||
|
|
||||||
def set_properties(self, properties):
|
def set_properties(self, properties):
|
||||||
|
Loading…
Reference in New Issue
Block a user