Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2023-06-18 09:40:39 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-06-18 22:30:24 +0300
commitd350651b1054c08fa56dbd208f660e160ddcf399 (patch)
tree9d3cf926209ecbc37ad63354bbd6744b4cc6a5d6
parentb2d82b91adec93589629c6ffc1040cb6c1eb2882 (diff)
cq: MAM: fix type annotations
-rw-r--r--nbxmpp/modules/misc.py2
-rw-r--r--nbxmpp/structs.py2
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: