fix XEP-202 implementation, child element must be <time>, not <query>. Fixes #5412
This commit is contained in:
parent
dec49976c4
commit
ea5429b248
1 changed files with 2 additions and 2 deletions
|
@ -1577,8 +1577,8 @@ class Connection(ConnectionHandlers):
|
|||
to_whom_jid = jid
|
||||
if resource:
|
||||
to_whom_jid += '/' + resource
|
||||
iq = common.xmpp.Iq(to=to_whom_jid, typ='get', queryNS=\
|
||||
common.xmpp.NS_TIME_REVISED)
|
||||
iq = common.xmpp.Iq(to=to_whom_jid, typ='get')
|
||||
iq.addChild('time', namespace=common.xmpp.NS_TIME_REVISED)
|
||||
id_ = self.connection.getAnID()
|
||||
iq.setID(id_)
|
||||
if groupchat_jid:
|
||||
|
|
Loading…
Add table
Reference in a new issue