Fix wrong variable names and forgotten imports in message_archiving.

This commit is contained in:
Emmanuel Gil Peyrot 2016-11-05 15:02:46 +00:00
parent f25590d212
commit 0bdd592e4d
1 changed files with 6 additions and 2 deletions

View File

@ -21,8 +21,12 @@
import nbxmpp
from common import gajim
from common import ged
from common import helpers
from common.connection_handlers_events import ArchivingReceivedEvent
from calendar import timegm
from time import localtime
import logging
log = logging.getLogger('gajim.c.message_archiving')
@ -225,7 +229,7 @@ class ConnectionArchive136(ConnectionArchive):
msg=payload[0].getData(), nick=nick)
elif payload[0].getName() == 'message':
print('Not implemented')
chat = iq_obj.getTag('chat')
chat = obj.stanza.getTag('chat')
if chat:
with_ = chat.getAttr('with')
start_ = chat.getAttr('start')
@ -266,7 +270,7 @@ class ConnectionArchive136(ConnectionArchive):
del self.awaiting_answers[id_]
elif self.awaiting_answers[id_][0] == ARCHIVING_MODIFICATIONS_ARRIVED:
modified = iq_obj.getTag('modified')
modified = obj.stanza.getTag('modified')
if modified:
for element in modified.getChildren():
if element.getName() == 'changed':