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:
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