Adapt to API change
This commit is contained in:
parent
3c64b65829
commit
229793e9f0
@ -32,9 +32,9 @@ class BuddyMenu(Menu):
|
|||||||
icon = IconItem(icon_name='stock-chat')
|
icon = IconItem(icon_name='stock-chat')
|
||||||
self.add_action(icon, -1)
|
self.add_action(icon, -1)
|
||||||
|
|
||||||
activity = shell_model.get_current_activity()
|
activity_id = shell_model.get_current_activity()
|
||||||
if activity != None:
|
if activity_id != None:
|
||||||
activity_ps = pservice.get_activity(activity.get_id())
|
activity_ps = pservice.get_activity(activity_id)
|
||||||
|
|
||||||
# FIXME check that the buddy is not in the activity already
|
# FIXME check that the buddy is not in the activity already
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user