diff options
author | Richard Chan <richard@treeboxsolutions.com> | 2015-08-25 18:11:54 +0800 |
---|---|---|
committer | Richard Chan <richard@treeboxsolutions.com> | 2015-08-25 18:11:54 +0800 |
commit | 53b56899a07d6586889cc3e6cce3d64229a7bbeb (patch) | |
tree | d1efaba02adf66ce4fe8b25d5968c6067fd7197f /sleekxmpp/plugins/xep_0054/stanza.py | |
parent | abcec1e2d3348cabf6f9f6fc26d31be1e2c6c9ed (diff) | |
download | slixmpp-53b56899a07d6586889cc3e6cce3d64229a7bbeb.tar.gz slixmpp-53b56899a07d6586889cc3e6cce3d64229a7bbeb.tar.bz2 slixmpp-53b56899a07d6586889cc3e6cce3d64229a7bbeb.tar.xz slixmpp-53b56899a07d6586889cc3e6cce3d64229a7bbeb.zip |
Do not overwrite telephone numbers; otherwise all TEL/NUMBER received
from a server will be blank.
Diffstat (limited to 'sleekxmpp/plugins/xep_0054/stanza.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0054/stanza.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0054/stanza.py b/sleekxmpp/plugins/xep_0054/stanza.py index 72da0b51..2d017d6e 100644 --- a/sleekxmpp/plugins/xep_0054/stanza.py +++ b/sleekxmpp/plugins/xep_0054/stanza.py @@ -128,7 +128,8 @@ class Telephone(ElementBase): def setup(self, xml=None): super(Telephone, self).setup(xml=xml) - self._set_sub_text('NUMBER', '', keep=True) + ## this blanks out numbers received from server + ##self._set_sub_text('NUMBER', '', keep=True) def set_number(self, value): self._set_sub_text('NUMBER', value, keep=True) |