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.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8dc8cfbf by Marcin Mielniczuk at 2021-11-29T20:13:38+01:00
Drag & Drop: Show info message if paths are skipped
Related to #10544
- - - - -
2 changed files:
- gajim/chat_control_base.py
- gajim/common/helpers.py
Changes:
=====================================
gajim/chat_control_base.py
=====================================
@@ -965,12 +965,13 @@ def _on_drag_motion(self, *args):
self.xml.drop_area.set_no_show_all(False)
self.xml.drop_area.show_all()
- def drag_data_file_transfer(self, selection):
+ def drag_data_file_transfer(self, selection: Gtk.SelectionData) -> None:
# we may have more than one file dropped
uri_splitted = selection.get_uris()
for uri in uri_splitted:
path = helpers.get_file_path_from_dnd_dropped_uri(uri)
if not os.path.isfile(path): # is it a file?
+ self.add_info_message(_("The following file could not be accessed and was not uploaded: ") + path)
continue
self._start_filetransfer(path)
=====================================
gajim/common/helpers.py
=====================================
@@ -352,7 +352,7 @@ def build_command(executable, parameter):
command = '%s "%s"' % (executable, parameter)
return command
-def get_file_path_from_dnd_dropped_uri(uri):
+def get_file_path_from_dnd_dropped_uri(uri: str) -> str:
path = urllib.parse.unquote(uri) # escape special chars
path = path.strip('\r\n\x00') # remove \r\n and NULL
# get the path to file
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/8dc8cfbfa8d4ddf111c68495febb91aa…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/8dc8cfbfa8d4ddf111c68495febb91aa…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
71f4fdab by wurstsalat at 2021-11-29T09:27:40+01:00
Fix issue with activating window
- - - - -
1 changed file:
- gajim/gtk/main.py
Changes:
=====================================
gajim/gtk/main.py
=====================================
@@ -534,7 +534,7 @@ def _on_window_active(self, window, _param):
return
if control.get_autoscroll():
- self.mark_as_read(control.account, control.jid)
+ self.mark_as_read(control.account, control.contact.jid)
@staticmethod
def contact_info(account, jid):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/71f4fdabf7ecaa157a6153d4f212d53e…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/71f4fdabf7ecaa157a6153d4f212d53e…
You're receiving this email because of your account on dev.gajim.org.