Fix loading cached disco identity data.
This commit is contained in:
parent
6997261c6b
commit
b92ae706e9
@ -182,11 +182,6 @@ class StaticDisco(object):
|
|||||||
data = {'local': data.get('local', False),
|
data = {'local': data.get('local', False),
|
||||||
'cached': data.get('cached', True)}
|
'cached': data.get('cached', True)}
|
||||||
|
|
||||||
if node in (None, ''):
|
|
||||||
info = self.caps.get_caps(jid)
|
|
||||||
if info and identity in info['identities']:
|
|
||||||
return True
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
info = self.disco.get_info(jid=jid, node=node,
|
info = self.disco.get_info(jid=jid, node=node,
|
||||||
ifrom=ifrom, **data)
|
ifrom=ifrom, **data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user