Hello community,
here is the log from the commit of package python-mautrix-telegram for
openSUSE:Factory checked in at 2020-04-15 19:57:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mautrix-telegram (Old)
and /work/SRC/openSUSE:Factory/.python-mautrix-telegram.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mautrix-telegram"
Wed Apr 15 19:57:17 2020 rev:2 rq:794208 version:0.7.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-mautrix-telegram/python-mautrix-telegram.changes
2020-03-01 21:28:08.572572183 +0100
+++
/work/SRC/openSUSE:Factory/.python-mautrix-telegram.new.2738/python-mautrix-telegram.changes
2020-04-15 19:57:20.317701290 +0200
@@ -1,0 +2,6 @@
+Wed Apr 15 13:24:35 UTC 2020 - [email protected]
+
+- version update to 0.7.2
+ * no upstream changelog found
+
+-------------------------------------------------------------------
Old:
----
mautrix-telegram-0.7.1.tar.gz
New:
----
mautrix-telegram-0.7.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-mautrix-telegram.spec ++++++
--- /var/tmp/diff_new_pack.McLant/_old 2020-04-15 19:57:21.205701956 +0200
+++ /var/tmp/diff_new_pack.McLant/_new 2020-04-15 19:57:21.209701959 +0200
@@ -20,13 +20,14 @@
# Python2 is not supported
%define skip_python2 1
Name: python-mautrix-telegram
-Version: 0.7.1
+Version: 0.7.2
Release: 0
Summary: A Matrix-Telegram hybrid puppeting/relaybot bridge
License: AGPL-3.0-only
URL: https://github.com/tulir/mautrix-telegram
-Source0:
https://files.pythonhosted.org/packages/source/m/mautrix-telegram/mautrix-telegram-0.7.1.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/m/mautrix-telegram/mautrix-telegram-%{version}.tar.gz
Source1: mautrix-telegram.service
+# https://github.com/tulir/mautrix-telegram/issues/454
Source99:
https://raw.githubusercontent.com/tulir/mautrix-telegram/master/LICENSE
Patch0: fix-test.patch
Patch1: fix-install-files.patch
@@ -37,6 +38,7 @@
BuildRequires: systemd-rpm-macros
Requires: python-SQLAlchemy >= 1.2.3
Requires: python-Telethon >= 1.10
+Requires: python-Telethon >= 1.10
Requires: python-aiohttp >= 3.0.1
Requires: python-alembic >= 1.0.0
Requires: python-commonmark >= 0.8.1
@@ -57,6 +59,7 @@
# SECTION test requirements
BuildRequires: %{python_module SQLAlchemy >= 1.2.3}
BuildRequires: %{python_module Telethon >= 1.10}
+BuildRequires: %{python_module Telethon >= 1.10}
BuildRequires: %{python_module aiohttp >= 3.0.1}
BuildRequires: %{python_module alembic >= 1.0.0}
BuildRequires: %{python_module commonmark >= 0.8.1}
++++++ mautrix-telegram-0.7.1.tar.gz -> mautrix-telegram-0.7.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mautrix-telegram-0.7.1/PKG-INFO
new/mautrix-telegram-0.7.2/PKG-INFO
--- old/mautrix-telegram-0.7.1/PKG-INFO 2020-02-04 21:31:38.000000000 +0100
+++ new/mautrix-telegram-0.7.2/PKG-INFO 2020-04-04 21:06:39.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: mautrix-telegram
-Version: 0.7.1
+Version: 0.7.2
Summary: A Matrix-Telegram hybrid puppeting/relaybot bridge.
Home-page: https://github.com/tulir/mautrix-telegram
Author: Tulir Asokan
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mautrix-telegram-0.7.1/mautrix_telegram/__init__.py
new/mautrix-telegram-0.7.2/mautrix_telegram/__init__.py
--- old/mautrix-telegram-0.7.1/mautrix_telegram/__init__.py 2020-02-04
21:30:47.000000000 +0100
+++ new/mautrix-telegram-0.7.2/mautrix_telegram/__init__.py 2020-04-04
21:04:44.000000000 +0200
@@ -1,2 +1,2 @@
-__version__ = "0.7.1"
+__version__ = "0.7.2"
__author__ = "Tulir Asokan <[email protected]>"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/mautrix-telegram-0.7.1/mautrix_telegram/abstract_user.py
new/mautrix-telegram-0.7.2/mautrix_telegram/abstract_user.py
--- old/mautrix-telegram-0.7.1/mautrix_telegram/abstract_user.py
2020-02-04 16:37:35.000000000 +0100
+++ new/mautrix-telegram-0.7.2/mautrix_telegram/abstract_user.py
2020-03-04 22:46:47.000000000 +0100
@@ -421,7 +421,8 @@
f" in unbridged chat {portal.tgid_log}")
return
- if self.ignore_incoming_bot_events and self.relaybot and sender.id ==
self.relaybot.tgid:
+ if ((self.ignore_incoming_bot_events and self.relaybot
+ and sender and sender.id == self.relaybot.tgid)):
self.log.debug(f"Ignoring relaybot-sent message %s to %s",
update.id, portal.tgid_log)
return
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mautrix-telegram-0.7.1/mautrix_telegram/puppet.py
new/mautrix-telegram-0.7.2/mautrix_telegram/puppet.py
--- old/mautrix-telegram-0.7.1/mautrix_telegram/puppet.py 2020-02-04
20:21:32.000000000 +0100
+++ new/mautrix-telegram-0.7.2/mautrix_telegram/puppet.py 2020-04-04
21:04:32.000000000 +0200
@@ -25,7 +25,7 @@
from mautrix.appservice import AppService, IntentAPI
from mautrix.errors import MatrixRequestError
from mautrix.bridge import CustomPuppetMixin
-from mautrix.types import UserID, SyncToken
+from mautrix.types import UserID, SyncToken, RoomID
from mautrix.util.simple_template import SimpleTemplate
from .types import TelegramID
@@ -320,6 +320,10 @@
return True
return False
+ def default_puppet_should_leave_room(self, room_id: RoomID) -> bool:
+ portal: p.Portal = p.Portal.get_by_mxid(room_id)
+ return portal and not portal.backfilling and portal.peer_type != "user"
+
# endregion
# region Getters
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/mautrix-telegram-0.7.1/mautrix_telegram/version.py
new/mautrix-telegram-0.7.2/mautrix_telegram/version.py
--- old/mautrix-telegram-0.7.1/mautrix_telegram/version.py 2020-02-04
21:31:38.000000000 +0100
+++ new/mautrix-telegram-0.7.2/mautrix_telegram/version.py 2020-04-04
21:06:38.000000000 +0200
@@ -1,6 +1,6 @@
# Generated in setup.py
-git_tag = 'v0.7.1'
-git_revision = '07edcc48'
-version = '0.7.1'
-linkified_version =
'[0.7.1](https://github.com/tulir/mautrix-telegram/releases/tag/v0.7.1)'
+git_tag = 'v0.7.2'
+git_revision = 'cb9665f9'
+version = '0.7.2'
+linkified_version =
'[0.7.2](https://github.com/tulir/mautrix-telegram/releases/tag/v0.7.2)'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/mautrix-telegram-0.7.1/mautrix_telegram.egg-info/PKG-INFO
new/mautrix-telegram-0.7.2/mautrix_telegram.egg-info/PKG-INFO
--- old/mautrix-telegram-0.7.1/mautrix_telegram.egg-info/PKG-INFO
2020-02-04 21:31:38.000000000 +0100
+++ new/mautrix-telegram-0.7.2/mautrix_telegram.egg-info/PKG-INFO
2020-04-04 21:06:38.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: mautrix-telegram
-Version: 0.7.1
+Version: 0.7.2
Summary: A Matrix-Telegram hybrid puppeting/relaybot bridge.
Home-page: https://github.com/tulir/mautrix-telegram
Author: Tulir Asokan