Update mautrix-python
This commit is contained in:
@@ -374,7 +374,7 @@ class MatrixHandler(BaseMatrixHandler):
|
|||||||
def filter_matrix_event(self, evt: Event) -> bool:
|
def filter_matrix_event(self, evt: Event) -> bool:
|
||||||
if not isinstance(evt, (RedactionEvent, MessageEvent, StateEvent, EncryptedEvent)):
|
if not isinstance(evt, (RedactionEvent, MessageEvent, StateEvent, EncryptedEvent)):
|
||||||
return True
|
return True
|
||||||
if evt.content.get("net.maunium.telegram.puppet", False):
|
if evt.content.get(self.az.real_user_content_key, False):
|
||||||
puppet = pu.Puppet.get_by_custom_mxid(evt.sender)
|
puppet = pu.Puppet.get_by_custom_mxid(evt.sender)
|
||||||
if puppet:
|
if puppet:
|
||||||
self.log.debug("Ignoring puppet-sent event %s", evt.event_id)
|
self.log.debug("Ignoring puppet-sent event %s", evt.event_id)
|
||||||
|
|||||||
+1
-1
@@ -4,6 +4,6 @@ ruamel.yaml>=0.15.35,<0.17
|
|||||||
python-magic>=0.4,<0.5
|
python-magic>=0.4,<0.5
|
||||||
commonmark>=0.8,<0.10
|
commonmark>=0.8,<0.10
|
||||||
aiohttp>=3,<4
|
aiohttp>=3,<4
|
||||||
mautrix==0.6.0rc5
|
mautrix>=0.6,<0.7
|
||||||
telethon>=1.13,<1.16
|
telethon>=1.13,<1.16
|
||||||
telethon-session-sqlalchemy>=0.2.14,<0.3
|
telethon-session-sqlalchemy>=0.2.14,<0.3
|
||||||
|
|||||||
Reference in New Issue
Block a user