Don't traceback when our activity can't be found (because it's not shared)
This commit is contained in:
parent
a827175a28
commit
318c49bacf
@ -14,8 +14,9 @@ class ActivityChat(GroupChat):
|
||||
self._pservice.connect('service-appeared', self._service_appeared_cb)
|
||||
|
||||
# Find an existing activity chat to latch onto
|
||||
activity_ps = self._pservice.get_activity(activity.get_id())
|
||||
service = activity_ps.get_service_of_type(ActivityChat.SERVICE_TYPE)
|
||||
ps_activity = self._pservice.get_activity(activity.get_id())
|
||||
if ps_activity is not None:
|
||||
service = ps_activity.get_service_of_type(ActivityChat.SERVICE_TYPE)
|
||||
if service is not None:
|
||||
self._service_appeared_cb(self._pservice, None, service)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user