From d350651b1054c08fa56dbd208f660e160ddcf399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 18 Jun 2023 08:40:39 +0200 Subject: cq: MAM: fix type annotations --- nbxmpp/modules/misc.py | 2 +- nbxmpp/structs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nbxmpp/modules/misc.py b/nbxmpp/modules/misc.py index 8858499..87bbd92 100644 --- a/nbxmpp/modules/misc.py +++ b/nbxmpp/modules/misc.py @@ -103,7 +103,7 @@ def unwrap_mam(stanza, own_jid): # Timestamp parsing # Most servers dont set the 'from' attr, so we cant check for it - delay_timestamp = parse_delay(forwarded) + delay_timestamp = parse_delay(forwarded, epoch=True) if delay_timestamp is None: log.warning('No timestamp on MAM message') log.warning(stanza) diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py index 12b639a..717d9d4 100644 --- a/nbxmpp/structs.py +++ b/nbxmpp/structs.py @@ -921,7 +921,7 @@ class MAMData(NamedTuple): query_id: str archive: JID namespace: str - timestamp: datetime + timestamp: float @property def is_ver_1(self) -> bool: -- cgit v1.2.3