From 53b56899a07d6586889cc3e6cce3d64229a7bbeb Mon Sep 17 00:00:00 2001 From: Richard Chan Date: Tue, 25 Aug 2015 18:11:54 +0800 Subject: Do not overwrite telephone numbers; otherwise all TEL/NUMBER received from a server will be blank. --- sleekxmpp/plugins/xep_0054/stanza.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3