Philipp Hörist pushed to branch master at gajim / gajim
Commits:
d485535c by Daniel Brötzmann at 2019-12-11T11:58:22Z
XMLConsole: Close search bar first when pressing Esc
- - - - -
1 changed file:
- gajim/gtk/xml_console.py
Changes:
=====================================
gajim/gtk/xml_console.py
=====================================
@@ -116,6 +116,9 @@ class XMLConsoleWindow(Gtk.ApplicationWindow, EventHelper):
def _on_key_press_event(self, _widget, event):
if event.keyval == Gdk.KEY_Escape:
+ if self._ui.search_revealer.get_child_revealed():
+ self._ui.search_revealer.set_reveal_child(False)
+ return
self.destroy()
if (event.get_state() & Gdk.ModifierType.CONTROL_MASK and
event.keyval == Gdk.KEY_Return or
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/d485535c975bfa10f79ae8c6ca902c2482…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/d485535c975bfa10f79ae8c6ca902c2482…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
ed895375 by Philipp Hörist at 2019-12-11T20:14:53Z
OMEMO: Correctly parse empty devicelist nodes
Fixes #94
- - - - -
1 changed file:
- nbxmpp/modules/omemo.py
Changes:
=====================================
nbxmpp/modules/omemo.py
=====================================
@@ -209,6 +209,8 @@ class OMEMO:
pubsub_node = stanza.getTag('pubsub')
items_node = pubsub_node.getTag('items')
item = items_node.getTag('item')
+ if item is None:
+ return None
try:
return self._parse_devicelist(item)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/ed895375da7c8c4471c385cd78…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/ed895375da7c8c4471c385cd78…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
99f52e7e by Philipp Hörist at 2019-12-09T20:20:12Z
Add more options for validating JIDs
- - - - -
1 changed file:
- gajim/common/helpers.py
Changes:
=====================================
gajim/common/helpers.py
=====================================
@@ -1627,12 +1627,23 @@ def get_default_muc_config():
}
-def validate_jid(jid):
+def validate_jid(jid, type_=None):
try:
- return JID(str(jid))
+ jid = JID(str(jid))
except InvalidJid as error:
raise ValueError(error)
+ if type_ is None:
+ return jid
+ if type_ == 'bare' and jid.isBare:
+ return jid
+ if type_ == 'full' and jid.isFull:
+ return jid
+ if type_ == 'domain' and jid.isDomain:
+ return jid
+
+ raise ValueError('Not a %s JID' % type_)
+
def to_user_string(error):
text = error.get_text(get_rfc5646_lang())
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/99f52e7e9ef84863fd8d52830d2594823d…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/99f52e7e9ef84863fd8d52830d2594823d…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
9fe5483e by Philipp Hörist at 2019-12-09T20:08:15Z
JID: isDomain and isFull property
- - - - -
1 changed file:
- nbxmpp/protocol.py
Changes:
=====================================
nbxmpp/protocol.py
=====================================
@@ -897,6 +897,14 @@ class JID:
def isBare(self):
return self.node and self.domain and not self.resource
+ @property
+ def isDomain(self):
+ return self.domain and not self.node and not self.resource
+
+ @property
+ def isFull(self):
+ return self.domain and self.node and self.resource
+
def __eq__(self, other):
"""
Compare the JID to another instance or to string for equality
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/9fe5483eb06a6fbf7c80eefd64…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/9fe5483eb06a6fbf7c80eefd64…
You're receiving this email because of your account on dev.gajim.org.