summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Chan <richard@treeboxsolutions.com>2015-08-25 18:11:54 +0800
committerRichard Chan <richard@treeboxsolutions.com>2015-08-25 18:11:54 +0800
commit53b56899a07d6586889cc3e6cce3d64229a7bbeb (patch)
treed1efaba02adf66ce4fe8b25d5968c6067fd7197f
parentabcec1e2d3348cabf6f9f6fc26d31be1e2c6c9ed (diff)
downloadslixmpp-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.
-rw-r--r--sleekxmpp/plugins/xep_0054/stanza.py3
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)