Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbxmpp for openSUSE:Factory 
checked in at 2024-09-05 15:47:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbxmpp (Old)
 and      /work/SRC/openSUSE:Factory/.python-nbxmpp.new.10096 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nbxmpp"

Thu Sep  5 15:47:44 2024 rev:51 rq:1198905 version:5.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbxmpp/python-nbxmpp.changes      
2024-07-01 11:21:22.581259427 +0200
+++ /work/SRC/openSUSE:Factory/.python-nbxmpp.new.10096/python-nbxmpp.changes   
2024-09-05 15:48:32.803457443 +0200
@@ -1,0 +2,12 @@
+Sun Aug 31 15:12:38 UTC 2024 - Alexei Sorokin <sor.ale...@meowr.ru>
+
+- Update to version 5.0.3:
+  * Delay: Consider MUC and own server.
+
+-------------------------------------------------------------------
+Sun Jul 21 19:07:12 UTC 2024 - Alexei Sorokin <sor.ale...@meowr.ru>
+
+- Update to version 5.0.2:
+  * Delay: Better discover server delays.
+
+-------------------------------------------------------------------

Old:
----
  python-nbxmpp-5.0.1.tar.bz2

New:
----
  python-nbxmpp-5.0.3.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-nbxmpp.spec ++++++
--- /var/tmp/diff_new_pack.3jiFlN/_old  2024-09-05 15:48:33.447484189 +0200
+++ /var/tmp/diff_new_pack.3jiFlN/_new  2024-09-05 15:48:33.451484355 +0200
@@ -19,7 +19,7 @@
 %{?sle15_python_module_pythons}
 %define _name   nbxmpp
 Name:           python-nbxmpp
-Version:        5.0.1
+Version:        5.0.3
 Release:        0
 Summary:        XMPP library by Gajim team
 License:        GPL-3.0-or-later

++++++ python-nbxmpp-5.0.1.tar.bz2 -> python-nbxmpp-5.0.3.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-nbxmpp-5.0.1/ChangeLog 
new/python-nbxmpp-5.0.3/ChangeLog
--- old/python-nbxmpp-5.0.1/ChangeLog   2024-06-22 09:17:59.000000000 +0200
+++ new/python-nbxmpp-5.0.3/ChangeLog   2024-07-29 21:09:37.000000000 +0200
@@ -1,3 +1,15 @@
+nbxmpp 5.0.3 (23 Jul 2024)
+
+  Bug Fixes
+
+  * Delay: Consider MUC and own server (#156)
+
+nbxmpp 5.0.2 (07 Jul 2024)
+
+  Bug Fixes
+
+  * Delay: Better discover server delays (#156)
+
 nbxmpp 5.0.1 (20 Jun 2024)
 
   Improvements
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-nbxmpp-5.0.1/nbxmpp/__init__.py 
new/python-nbxmpp-5.0.3/nbxmpp/__init__.py
--- old/python-nbxmpp-5.0.1/nbxmpp/__init__.py  2024-06-22 09:17:59.000000000 
+0200
+++ new/python-nbxmpp-5.0.3/nbxmpp/__init__.py  2024-07-29 21:09:37.000000000 
+0200
@@ -4,4 +4,4 @@
 
 from .protocol import *  # noqa: F403, E402
 
-__version__: str = '5.0.1'
+__version__: str = '5.0.3'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-nbxmpp-5.0.1/nbxmpp/modules/delay.py 
new/python-nbxmpp-5.0.3/nbxmpp/modules/delay.py
--- old/python-nbxmpp-5.0.1/nbxmpp/modules/delay.py     2024-06-22 
09:17:59.000000000 +0200
+++ new/python-nbxmpp-5.0.3/nbxmpp/modules/delay.py     2024-07-29 
21:09:37.000000000 +0200
@@ -42,24 +42,23 @@
         ]
 
     def _process_message_delay(self, _client, stanza, properties):
+        # Determine if delay is from the server
+        # Some servers use the bare jid, others the domain
+        our_jid = self._client.get_bound_jid()
+        jids = [our_jid.bare, our_jid.domain]
+
+        if properties.from_muc:
+            muc_jid = properties.jid
+            jids += [muc_jid.bare, muc_jid.domain]
+
         if properties.is_muc_subject:
             # MUC Subjects can have a delay timestamp
             # to indicate when the user has set the subject,
             # the 'from' attr on these delays is the MUC server
             # but we treat it as user timestamp
-            jids = [properties.jid.bare,
-                    properties.jid.domain]
-
             properties.user_timestamp = parse_delay(stanza, from_=jids)
 
         else:
-            if properties.from_muc:
-                # Some servers use the MUC JID, others the domain
-                jids = [properties.jid.bare,
-                        properties.jid.domain]
-            else:
-                jids = [self._client.get_bound_jid().domain]
-
             server_delay = parse_delay(stanza, from_=jids)
             if server_delay is not None:
                 properties.has_server_delay = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-nbxmpp-5.0.1/nbxmpp/tcp.py 
new/python-nbxmpp-5.0.3/nbxmpp/tcp.py
--- old/python-nbxmpp-5.0.1/nbxmpp/tcp.py       2024-06-22 09:17:59.000000000 
+0200
+++ new/python-nbxmpp-5.0.3/nbxmpp/tcp.py       2024-07-29 21:09:37.000000000 
+0200
@@ -38,6 +38,7 @@
         Connection.__init__(self, *args, **kwargs)
 
         self._client = Gio.SocketClient.new()
+        self._client.set_protocol(Gio.SocketProtocol.TCP)
         self._client.set_timeout(7)
 
         if self._address.proxy is not None:

Reply via email to