mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-07-29 09:38:44 -04:00
pantalaimon: Update to nio 0.4.
This commit is contained in:
parent
a9b00dfa37
commit
48b4baf79c
2 changed files with 3 additions and 3 deletions
|
@ -24,6 +24,7 @@ from nio import (
|
||||||
AsyncClient,
|
AsyncClient,
|
||||||
ClientConfig,
|
ClientConfig,
|
||||||
EncryptionError,
|
EncryptionError,
|
||||||
|
Event,
|
||||||
KeysQueryResponse,
|
KeysQueryResponse,
|
||||||
KeyVerificationEvent,
|
KeyVerificationEvent,
|
||||||
KeyVerificationKey,
|
KeyVerificationKey,
|
||||||
|
@ -32,7 +33,6 @@ from nio import (
|
||||||
LocalProtocolError,
|
LocalProtocolError,
|
||||||
MegolmEvent,
|
MegolmEvent,
|
||||||
RoomContextError,
|
RoomContextError,
|
||||||
RoomEncryptedEvent,
|
|
||||||
RoomEncryptedMedia,
|
RoomEncryptedMedia,
|
||||||
RoomMessageMedia,
|
RoomMessageMedia,
|
||||||
RoomMessageText,
|
RoomMessageText,
|
||||||
|
@ -621,7 +621,7 @@ class PanClient(AsyncClient):
|
||||||
|
|
||||||
def pan_decrypt_event(self, event_dict, room_id=None, ignore_failures=True):
|
def pan_decrypt_event(self, event_dict, room_id=None, ignore_failures=True):
|
||||||
# type: (Dict[Any, Any], Optional[str], bool) -> (bool)
|
# type: (Dict[Any, Any], Optional[str], bool) -> (bool)
|
||||||
event = RoomEncryptedEvent.parse_event(event_dict)
|
event = Event.parse_encrypted_event(event_dict)
|
||||||
|
|
||||||
if not isinstance(event, MegolmEvent):
|
if not isinstance(event, MegolmEvent):
|
||||||
logger.warn(
|
logger.warn(
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -32,7 +32,7 @@ setup(
|
||||||
"prompt_toolkit",
|
"prompt_toolkit",
|
||||||
"notify2",
|
"notify2",
|
||||||
"typing;python_version<'3.5'",
|
"typing;python_version<'3.5'",
|
||||||
"matrix-nio[e2e]"
|
"matrix-nio[e2e] >= 0.4"
|
||||||
],
|
],
|
||||||
extras_require={
|
extras_require={
|
||||||
"e2e_search": [
|
"e2e_search": [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue