Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits:
-
7151f8f5
by lovetox at 2021-03-10T20:38:06+01:00
1 changed file:
Changes:
| ... | ... | @@ -821,7 +821,7 @@ def get_roster_menu(account, jid): |
| 821 | 821 |
|
| 822 | 822 |
def get_chat_list_row_menu(workspace_id, account, jid, pinned):
|
| 823 | 823 |
client = app.get_client(account)
|
| 824 |
- contact = client.get_module('Contact').get_contact(jid)
|
|
| 824 |
+ contact = client.get_module('Contacts').get_contact(jid)
|
|
| 825 | 825 |
|
| 826 | 826 |
toggle_label = _('Unpin Chat') if pinned else _('Pin Chat')
|
| 827 | 827 |
|
| ... | ... | @@ -830,7 +830,8 @@ def get_chat_list_row_menu(workspace_id, account, jid, pinned): |
| 830 | 830 |
(_('Move Chat'), []),
|
| 831 | 831 |
]
|
| 832 | 832 |
|
| 833 |
- if not contact.is_in_roster():
|
|
| 833 |
+ |
|
| 834 |
+ if not contact.is_in_roster:
|
|
| 834 | 835 |
menu_items.append(('add-to-roster', _('Add to contact list')))
|
| 835 | 836 |
|
| 836 | 837 |
menu = Gio.Menu()
|