Philipp Hörist pushed to branch master at gajim / gajim
Commits:
887f1112 by Daniel Brötzmann at 2019-11-20T09:21:27Z
Roster: Don't build resources submenu for start_chat_menuitem
This avoids being able to open multiple ChatControls for one contact.
Historically, this was used to send a message to a specific resource.
- - - - -
1 changed file:
- gajim/gui_menu_builder.py
Changes:
=====================================
gajim/gui_menu_builder.py
=====================================
@@ -206,8 +206,6 @@ control=None, gc_contact=None, is_anonymous=True):
contacts = app.contacts.get_contacts(account, jid)
if len(contacts) > 1 and use_multiple_contacts: # several resources
- start_chat_menuitem.set_submenu(build_resources_submenu(contacts,
- account, app.interface.on_open_chat_window))
send_file_menuitem.set_submenu(build_resources_submenu(
contacts,
account,
@@ -216,8 +214,6 @@ control=None, gc_contact=None, is_anonymous=True):
execute_command_menuitem.set_submenu(build_resources_submenu(
contacts, account, roster.on_execute_command, cap=NS_COMMANDS))
else:
- start_chat_menuitem.connect('activate',
- app.interface.on_open_chat_window, contact, account)
if contact.supports(NS_JINGLE_FILE_TRANSFER_5):
send_file_menuitem.set_sensitive(True)
send_file_menuitem.connect('activate',
@@ -238,6 +234,9 @@ control=None, gc_contact=None, is_anonymous=True):
else:
execute_command_menuitem.set_sensitive(False)
+ start_chat_menuitem.connect(
+ 'activate', app.interface.on_open_chat_window, contact, account)
+
rename_menuitem.connect('activate', roster.on_rename, 'contact', jid,
account)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/887f1112c8b1dcdaf0172fe7a31168d809…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/887f1112c8b1dcdaf0172fe7a31168d809…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
425f50f8 by Daniel Brötzmann at 2019-11-19T20:12:48Z
Always use bare JID when sending message to group
- - - - -
1 changed file:
- gajim/gtk/single_message.py
Changes:
=====================================
gajim/gtk/single_message.py
=====================================
@@ -74,7 +74,7 @@ class SingleMessageWindow(Gtk.ApplicationWindow):
self.message_tv_buffer.connect('changed', self.update_char_counter)
if isinstance(to, list):
- jid = ', '.join([i[0].get_full_jid() for i in to])
+ jid = ', '.join([i[0].jid for i in to])
self._ui.to_entry.set_text(jid)
else:
self._ui.to_entry.set_text(to)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/425f50f827cb0cbef1676371e028badb5f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/425f50f827cb0cbef1676371e028badb5f…
You're receiving this email because of your account on dev.gajim.org.