diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-01-01 21:15:07 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-01-01 21:15:07 +0300 |
commit | 0b6dc8c9ae35fce92f9c5baed8fc56c6abfe214a (patch) | |
tree | 2aac2384fccdd1d288ade7f1836679f698dee2b1 /nbxmpp/structs.py | |
parent | da5f7ab1da8e8c139fdcc0bad250fa8ccd79ae07 (diff) |
Add self bare property
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py index c487539..2e55c8a 100644 --- a/nbxmpp/structs.py +++ b/nbxmpp/structs.py @@ -130,6 +130,7 @@ class PresenceProperties: self.id = None self.nickname = None self.self_presence = False + self.self_bare = False self.from_muc = False self.status = '' self.timestamp = time.time() @@ -150,6 +151,10 @@ class PresenceProperties: return self.self_presence @property + def is_self_bare(self): + return self.self_bare + + @property def is_muc_destroyed(self): return self.muc_destroyed is not None |