Philipp Hörist pushed to branch master at gajim / gajim
Commits:
6f61f053 by Philipp Hörist at 2019-02-11T19:29:20Z
MAM: Detect nbxmpp supported encryptions
- - - - -
4a2c23b8 by Philipp Hörist at 2019-02-11T19:32:41Z
Correctly remove bookmark after MUC was destroyed
- - - - -
2 changed files:
- gajim/common/modules/bookmarks.py
- gajim/common/modules/mam.py
Changes:
=====================================
gajim/common/modules/bookmarks.py
=====================================
@@ -222,7 +222,7 @@ class Bookmarks(BaseModule):
bookmark = self.get_bookmark_from_jid(jid)
if bookmark is None:
return
- self.bookmark.remove(bookmark)
+ self._bookmarks.remove(bookmark)
if publish:
self.store_bookmarks()
=====================================
gajim/common/modules/mam.py
=====================================
@@ -164,14 +164,18 @@ class MAM:
else:
event = MamMessageReceivedEvent(None, **event_attrs)
- app.plugin_manager.extension_point(
- 'decrypt', self._con, event, self._decryption_finished)
-
- if not event.encrypted:
- eme = parse_eme(event.message)
- if eme is not None:
- event.msgtxt = eme
+ if properties.is_encrypted:
+ event.additional_data['encrypted'] = properties.encrypted.additional_data
self._decryption_finished(event)
+ else:
+ app.plugin_manager.extension_point(
+ 'decrypt', self._con, event, self._decryption_finished)
+
+ if not event.encrypted:
+ eme = parse_eme(event.message)
+ if eme is not None:
+ event.msgtxt = eme
+ self._decryption_finished(event)
raise nbxmpp.NodeProcessed
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/1256372d36384b48242faf0c7ad15ad1f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/1256372d36384b48242faf0c7ad15ad1f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5059f723 by Philipp Hörist at 2019-02-09T21:05:17Z
Windows: Add pygments to build
- - - - -
1 changed file:
- win/_base.sh
Changes:
=====================================
win/_base.sh
=====================================
@@ -96,7 +96,8 @@ function install_deps {
mingw-w64-"${ARCH}"-"${PYTHON_ID}"-pyopenssl \
mingw-w64-"${ARCH}"-"${PYTHON_ID}"-docutils \
mingw-w64-"${ARCH}"-"${PYTHON_ID}"-certifi \
- mingw-w64-"${ARCH}"-"${PYTHON_ID}"-six
+ mingw-w64-"${ARCH}"-"${PYTHON_ID}"-six \
+ mingw-w64-"${ARCH}"-"${PYTHON_ID}"-pygments
build_pip install precis-i18n
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/5059f72373a1109216178cb7593fd26ea5…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/5059f72373a1109216178cb7593fd26ea5…
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:
ee45ce4a by Philipp Hörist at 2019-02-09T20:55:01Z
Fix test
- - - - -
1 changed file:
- test/unit/test_xmpp_dispatcher_nb.py
Changes:
=====================================
test/unit/test_xmpp_dispatcher_nb.py
=====================================
@@ -88,7 +88,8 @@ class TestDispatcherNB(unittest.TestCase):
self._simulate_connect()
stanza = "<iq type='get' />"
def send(data):
- self.assertEqual(lib.xml2str_sorted(data), '<iq xmlns="jabber:client" type="error"><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">The feature requested is not implemented by the recipient or server and therefore cannot be processed.</text></error></iq>')
+ print(lib.xml2str_sorted(data))
+ self.assertEqual(lib.xml2str_sorted(data), '<iq xmlns="jabber:client" from="test(a)test.test" to="test(a)test.test" type="error"><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">The feature requested is not implemented by the recipient or server and therefore cannot be processed.</text></error></iq>')
self.client.send = send
self.dispatcher.ProcessNonBlocking(stanza)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/ee45ce4a91240aab898c0151b1…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/ee45ce4a91240aab898c0151b1…
You're receiving this email because of your account on dev.gajim.org.