diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-06-18 09:40:39 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-06-18 22:30:24 +0300 |
commit | d350651b1054c08fa56dbd208f660e160ddcf399 (patch) | |
tree | 9d3cf926209ecbc37ad63354bbd6744b4cc6a5d6 | |
parent | b2d82b91adec93589629c6ffc1040cb6c1eb2882 (diff) |
cq: MAM: fix type annotations
-rw-r--r-- | nbxmpp/modules/misc.py | 2 | ||||
-rw-r--r-- | 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: |