瀏覽代碼

Update mautrix-python

Tulir Asokan 2 年之前
父節點
當前提交
ad076e4d85
共有 4 個文件被更改,包括 5 次插入5 次删除
  1. 2 2
      mautrix_signal/portal.py
  2. 1 1
      mautrix_signal/signal.py
  3. 1 1
      optional-requirements.txt
  4. 1 1
      requirements.txt

+ 2 - 2
mautrix_signal/portal.py

@@ -363,7 +363,7 @@ class Portal(DBPortal, BasePortal):
                 status.status = MessageStatus.RETRIABLE
         else:
             status.status = MessageStatus.SUCCESS
-        status.fill_legacy_booleans()
+
         await intent.send_message_event(
             room_id=self.mxid,
             event_type=EventType.BEEPER_MESSAGE_STATUS,
@@ -1212,7 +1212,7 @@ class Portal(DBPortal, BasePortal):
         self.log.debug(f"Started handling message {message.timestamp} by {sender.uuid}")
         self.log.trace(f"Message content: {message}")
         intent = sender.intent_for(self)
-        await intent.set_typing(self.mxid, False)
+        await intent.set_typing(self.mxid, timeout=0)
         event_id = None
         reply_to = await self._find_quote_event_id(message.quote)
 

+ 1 - 1
mautrix_signal/signal.py

@@ -341,7 +341,7 @@ class SignalHandler(SignaldClient):
             return
         is_typing = typing.action == TypingAction.STARTED
         await sender.intent_for(portal).set_typing(
-            portal.mxid, is_typing, ignore_cache=True, timeout=SIGNAL_TYPING_TIMEOUT
+            portal.mxid, timeout=SIGNAL_TYPING_TIMEOUT if is_typing else 0
         )
 
     @staticmethod

+ 1 - 1
optional-requirements.txt

@@ -20,4 +20,4 @@ Pillow>=4,<10
 signalstickers-client>=3,<4
 
 #/sqlite
-aiosqlite>=0.16,<0.18
+aiosqlite>=0.16,<0.19

+ 1 - 1
requirements.txt

@@ -4,5 +4,5 @@ commonmark>=0.8,<0.10
 aiohttp>=3,<4
 yarl>=1,<2
 attrs>=19.1
-mautrix>=0.18.9,<0.19
+mautrix>=0.19.2,<0.20
 asyncpg>=0.20,<0.28