Restore use of ActivityProperties.GetActivity
This commit is contained in:
parent
46159e987b
commit
af6e3aa5ef
@ -267,11 +267,14 @@ class PresenceService(gobject.GObject):
|
||||
connection_manager = get_connection_manager()
|
||||
connections_per_account = connection_manager.get_connections_per_account()
|
||||
for account_path, connection in connections_per_account.items():
|
||||
room_handles = connection.RequestHandles(HANDLE_TYPE_ROOM,
|
||||
[activity_id],
|
||||
dbus_interface=CONNECTION)
|
||||
try:
|
||||
room_handle = connection.GetActivity(activity_id)
|
||||
except dbus.exceptions.DBusException, e:
|
||||
if e.get_dbus_name() != 'org.freedesktop.Telepathy.Error.NotAvailable':
|
||||
raise
|
||||
else:
|
||||
activity = Activity(account_path, connection,
|
||||
room_handle=room_handles[0])
|
||||
room_handle=room_handle)
|
||||
self._activity_cache = activity
|
||||
return activity
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user