Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
fedc80c9 by Yann Leboulanger at 2019-09-17T13:26:38Z
make BOSH work when more than 16384 bytes need to be sent
- - - - -
1 changed file:
- nbxmpp/transports.py
Changes:
=====================================
nbxmpp/transports.py
=====================================
@@ -571,7 +571,7 @@ class NonBlockingTCP(NonBlockingTransport, IdleObject):
if send_count:
sent_data = self.sendbuff[:send_count]
self.sendbuff = self.sendbuff[send_count:]
- self._plug_idle(writable=(self.sendqueue != []), readable=True)
+ self._plug_idle(writable=((self.sendqueue != []) or (len(self.sendbuff) != 0)), readable=True)
if self.sent_bytes_buff:
sent_data = self.sent_bytes_buff + sent_data
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/fedc80c99b021f0e59db0cca80…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/fedc80c99b021f0e59db0cca80…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a1c352f2 by Philipp Hörist at 2019-09-17T18:03:16Z
XMLConsole: Inject jabber:client into message, presence and iq
- - - - -
1 changed file:
- gajim/gtk/xml_console.py
Changes:
=====================================
gajim/gtk/xml_console.py
=====================================
@@ -172,10 +172,18 @@ class XMLConsoleWindow(Gtk.ApplicationWindow):
stanza = buffer_.get_text(begin_iter, end_iter, True)
if stanza:
try:
- node = nbxmpp.Protocol(node=stanza)
+ node = nbxmpp.Node(node=stanza)
except Exception as error:
ErrorDialog(_('Invalid Node'), str(error))
return
+
+ if node.getName() in ('message', 'presence', 'iq'):
+ # Parse stanza again if its a message, presence or iq and
+ # set jabber:client as toplevel namespace
+ # Use type Protocol so nbxmpp counts the stanza for
+ # stream management
+ node = nbxmpp.Protocol(node=stanza,
+ attrs={'xmlns': 'jabber:client'})
app.connections[self.account].connection.send(node)
self.last_stanza = stanza
buffer_.set_text('')
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a1c352f24b4aee30fe60459b04d61e818a…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a1c352f24b4aee30fe60459b04d61e818a…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
2c4f4d1e by Philipp Hörist at 2019-09-16T19:41:21Z
AddContact: Set info button sensitive if JID is passed
- - - - -
1 changed file:
- gajim/gtk/add_contact.py
Changes:
=====================================
gajim/gtk/add_contact.py
=====================================
@@ -137,6 +137,9 @@ class AddNewContactWindow(Gtk.ApplicationWindow):
else:
uid, transport = app.get_name_and_server_from_jid(jid)
self.uid_entry.set_text(uid.replace('%', '@', 1))
+
+ self.show_contact_info_button.set_sensitive(True)
+
# set protocol_combobox
model = self.protocol_combobox.get_model()
iter_ = model.get_iter_first()
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/2c4f4d1e4ba88e790aee35996afdf6a364…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/2c4f4d1e4ba88e790aee35996afdf6a364…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
92d127ae by Philipp Hörist at 2019-09-16T19:37:30Z
AddContact: Handle only bare JIDs
- - - - -
1 changed file:
- gajim/gtk/add_contact.py
Changes:
=====================================
gajim/gtk/add_contact.py
=====================================
@@ -45,6 +45,9 @@ class AddNewContactWindow(Gtk.ApplicationWindow):
self.account = account
self.adding_jid = False
+ if jid is not None:
+ jid = app.get_jid_without_resource(jid)
+
# fill accounts with active accounts
accounts = app.get_enabled_accounts_with_labels()
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/92d127aea6993abd6c164fd4cf74ba80bf…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/92d127aea6993abd6c164fd4cf74ba80bf…
You're receiving this email because of your account on dev.gajim.org.