diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-11-02 23:38:33 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-11-02 23:38:33 +0300 |
commit | 7b0f5868cd169c9411578268eada368197054ab5 (patch) | |
tree | 71cf25620f79c9dc01d5ce7a49a0b202ef532c9d /nbxmpp/structs.py | |
parent | 1eb1b5049546a839657e6344cb9fae200cf17cd4 (diff) |
MessageProperties: Add more carbon propertys
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 8 |
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 |