Typo fix of parameter name 'data' it is now 'iq'

Code was broken during refactoring
This commit is contained in:
s-m-b 2014-11-09 04:36:38 +03:00
parent 403462fdb8
commit e328ff4833

View File

@ -74,8 +74,8 @@ class Gmail(BasePlugin):
return resp return resp
def _update_last_results(self, iq, callback=None): def _update_last_results(self, iq, callback=None):
self._last_result_time = data['gmail_messages']['result_time'] self._last_result_time = iq['gmail_messages']['result_time']
threads = data['gmail_messages']['threads'] threads = iq['gmail_messages']['threads']
if threads: if threads:
self._last_result_tid = threads[0]['tid'] self._last_result_tid = threads[0]['tid']
if callback: if callback: