Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
a8720627 by Daniel Brötzmann at 2021-12-02T14:56:55+00:00
GroupchatRoster: Correctly get real jid for menu
- - - - -
1 changed file:
- gajim/gui_menu_builder.py
Changes:
=====================================
gajim/gui_menu_builder.py
=====================================
@@ -564,7 +564,9 @@ def build_workspaces_submenu(current_workspace_id: str, account: str,
def get_groupchat_roster_menu(account, control_id, self_contact, contact):
menu = Gtk.Menu()
- real_jid = contact.real_jid.bare or ''
+ real_jid = ''
+ if contact.real_jid is not None:
+ real_jid = contact.real_jid.bare
item = Gtk.MenuItem(label=_('Information'))
action = f'win.contact-information-{control_id}::{contact.name}'
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a8720627ce2c5a811c67ba7f8cf3630f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a8720627ce2c5a811c67ba7f8cf3630f…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
287f711a by wurstsalat at 2021-12-01T23:33:36+01:00
Fix Add contact for Chatlist and MUC roster
- - - - -
1 changed file:
- gajim/gui_menu_builder.py
Changes:
=====================================
gajim/gui_menu_builder.py
=====================================
@@ -520,8 +520,12 @@ def get_chat_list_row_menu(workspace_id: str, account: str,
is_self_contact = contact.jid.bare == client.get_own_jid().bare
pm_with_jid = contact.is_pm_contact and contact.real_jid is not None
if (not contact.is_groupchat and not contact.is_in_roster and
- not is_self_contact and pm_with_jid):
- menu_items.append(('add-to-roster', _('Add to Contact List…')))
+ not is_self_contact):
+ if contact.is_pm_contact:
+ if contact.real_jid is not None:
+ menu_items.append(('add-to-roster', _('Add to Contact List…')))
+ else:
+ menu_items.append(('add-to-roster', _('Add to Contact List…')))
menu = Gio.Menu()
for item in menu_items:
@@ -560,7 +564,7 @@ def build_workspaces_submenu(current_workspace_id: str, account: str,
def get_groupchat_roster_menu(account, control_id, self_contact, contact):
menu = Gtk.Menu()
- real_jid = contact.real_jid or ''
+ real_jid = contact.real_jid.bare or ''
item = Gtk.MenuItem(label=_('Information'))
action = f'win.contact-information-{control_id}::{contact.name}'
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/287f711a37460819d2b6bcb802e324c3…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/287f711a37460819d2b6bcb802e324c3…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits:
a3a810d0 by lovetox at 2021-12-01T22:54:52+01:00
Fix add_contact()
- - - - -
1 changed file:
- gajim/app_actions.py
Changes:
=====================================
gajim/app_actions.py
=====================================
@@ -34,7 +34,9 @@
def on_add_contact_jid(_action, param):
- jid = JID.from_string(param.get_string())
+ jid = param.get_string() or None
+ if jid is not None:
+ jid = JID.from_string(jid)
open_window('AddContact', account=None, jid=jid)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a3a810d0751d22f48e9bb3e85adbcd8f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a3a810d0751d22f48e9bb3e85adbcd8f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits:
841d4bf6 by lovetox at 2021-12-01T18:13:48+01:00
Fix get_active_accounts()
- - - - -
1 changed file:
- gajim/common/settings.py
Changes:
=====================================
gajim/common/settings.py
=====================================
@@ -574,7 +574,7 @@ def get_accounts(self) -> List[str]:
def get_active_accounts(self) -> List[str]:
active = []
for account, settings in self._account_settings.items():
- if settings['account']['active'] is True:
+ if self.get_account_setting(account, 'active'):
active.append(account)
return active
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/841d4bf6468d4b4647b9d43cc24ecd23…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/841d4bf6468d4b4647b9d43cc24ecd23…
You're receiving this email because of your account on dev.gajim.org.