Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
df423645 by lovetox at 2020-07-07T22:05:43+02:00
Update ChangeLog
- - - - -
1 changed file:
- ChangeLog
Changes:
=====================================
ChangeLog
=====================================
@@ -1,6 +1,15 @@
-python-nbxmpp 1.0.1 (TBA)
+python-nbxmpp 1.1.0 (07 July 2020)
+
+ New
+
+ * Add XEP-0377 support
+ * MUC: Return message id when using inivite()
+
+ Bugfixes
* OMEMO: Correctly parse prekey value
+ * Client: Determine protocol and type correctly if a custom host is used
+ * Smacks: Don't fail on saving error replies
python-nbxmpp 1.0.0 (18 June 2020)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/df423645f23d278141fd2753…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/df423645f23d278141fd2753…
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:
6b6987c3 by lovetox at 2020-07-06T21:30:53+02:00
MUC: Return message id on invite()
- - - - -
1 changed file:
- nbxmpp/modules/muc.py
Changes:
=====================================
nbxmpp/modules/muc.py
=====================================
@@ -492,7 +492,7 @@ class MUC(BaseModule):
else:
invite = self._build_mediated_invite(
room, to, reason, password, continue_)
- self._client.send_stanza(invite)
+ return self._client.send_stanza(invite)
@staticmethod
def _build_direct_invite(room, to, reason, password, continue_):
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/6b6987c3dbb14963d865008a…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/6b6987c3dbb14963d865008a…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
cb4a2ed5 by Daniel Brötzmann at 2020-07-06T09:06:31+02:00
Roster: Add spam reporting
- - - - -
1 changed file:
- gajim/roster_window.py
Changes:
=====================================
gajim/roster_window.py
=====================================
@@ -2740,10 +2740,12 @@ class RosterWindow:
When clicked on the 'block' button in context menu. list_ is a list of
(contact, account)
"""
- def on_continue(msg, pep_dict):
- if msg is None:
- # user pressed Cancel to change status message dialog
- return
+ def _block_it(is_checked=None, report=None):
+ if is_checked is not None: # Dialog has been shown
+ if is_checked:
+ app.config.set('confirm_block', 'no')
+ else:
+ app.config.set('confirm_block', 'yes')
accounts = []
for _, account in list_:
@@ -2755,7 +2757,7 @@ class RosterWindow:
l_ = [i[0] for i in list_ if i[1] == acct]
con = app.connections[acct]
jid_list = [contact.jid for contact in l_]
- con.get_module('Blocking').block(jid_list)
+ con.get_module('Blocking').block(jid_list, report)
for contact in l_:
ctrl = app.interface.msg_win_mgr.get_control(
contact.jid, acct)
@@ -2768,14 +2770,6 @@ class RosterWindow:
return
self.draw_contact(contact.jid, acct)
- def _block_it(is_checked=None):
- if is_checked is not None: # Dialog has been shown
- if is_checked:
- app.config.set('confirm_block', 'no')
- else:
- app.config.set('confirm_block', 'yes')
- self.get_status_message('offline', on_continue, show_pep=False)
-
# Check if confirmation is needed for blocking
confirm_block = app.config.get('confirm_block')
if confirm_block == 'no':
@@ -2789,6 +2783,10 @@ class RosterWindow:
'will not receive further messages.'),
_('_Do not ask again'),
[DialogButton.make('Cancel'),
+ DialogButton.make('OK',
+ text=_('_Report Spam'),
+ callback=_block_it,
+ kwargs={'report': 'spam'}),
DialogButton.make('Remove',
text=_('_Block'),
callback=_block_it)],
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/cb4a2ed5ecac6df95c27ae21d14ad385…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/cb4a2ed5ecac6df95c27ae21d14ad385…
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:
db8cea4d by lovetox at 2020-07-05T22:35:23+02:00
Smacks: Don't fail on saving error replies
- - - - -
1 changed file:
- nbxmpp/smacks.py
Changes:
=====================================
nbxmpp/smacks.py
=====================================
@@ -23,6 +23,7 @@ from nbxmpp.simplexml import Node
from nbxmpp.const import StreamState
from nbxmpp.util import LogAdapter
from nbxmpp.structs import StanzaHandler
+from nbxmpp.protocol import Error
log = logging.getLogger('nbxmpp.smacks')
@@ -139,7 +140,9 @@ class Smacks:
# Make a full copy so we dont run into problems when
# the stanza is modified after sending for some reason
- stanza = type(stanza)(node=str(stanza))
+ # TODO: Make also copies of Protocol.Error objects
+ if not isinstance(stanza, Error):
+ stanza = type(stanza)(node=str(stanza))
self._add_delay(stanza)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/db8cea4d9322963d27b74b81…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/db8cea4d9322963d27b74b81…
You're receiving this email because of your account on dev.gajim.org.