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>2018-12-28 03:19:52 +0300
committerPhilipp Hörist <philipp@hoerist.com>2018-12-30 21:49:08 +0300
commit5e78d092dce8bd377023619683f85fef39563fe0 (patch)
tree21871987cec67f2dbef0b7774f9aef39b35bf8f9 /nbxmpp/structs.py
parenta6f414a3e02fbd9ba1c90faf91b63a5526f6caef (diff)
Add VCardAvatar (XEP-0153) module
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r--nbxmpp/structs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py
index e577e43..fcc7156 100644
--- a/nbxmpp/structs.py
+++ b/nbxmpp/structs.py
@@ -19,6 +19,7 @@ import time
from collections import namedtuple
from nbxmpp.const import MessageType
+from nbxmpp.const import AvatarState
StanzaHandler = namedtuple('StanzaHandler',
'name callback typ ns xmlns system priority')
@@ -124,6 +125,8 @@ class PresenceProperties:
self.signed = None
self.error_message = ''
self.error_code = ''
+ self.avatar_sha = None
+ self.avatar_state = AvatarState.IGNORE
class BaseResult: