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>2019-11-02 23:38:33 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-11-02 23:38:33 +0300
commit7b0f5868cd169c9411578268eada368197054ab5 (patch)
tree71cf25620f79c9dc01d5ce7a49a0b202ef532c9d /nbxmpp/structs.py
parent1eb1b5049546a839657e6344cb9fae200cf17cd4 (diff)
MessageProperties: Add more carbon propertys
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r--nbxmpp/structs.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py
index 28c6ccb..77bf605 100644
--- a/nbxmpp/structs.py
+++ b/nbxmpp/structs.py
@@ -614,6 +614,14 @@ class MessageProperties:
return self.carbon is not None
@property
+ def is_sent_carbon(self):
+ return self.carbon is not None and self.carbon.is_sent
+
+ @property
+ def is_received_carbon(self):
+ return self.carbon is not None and self.carbon.is_received
+
+ @property
def is_mam_message(self):
return self.mam is not None