From 0bdd592e4d29ecbdb3e7d51f1bcd2082deb0231c Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 5 Nov 2016 15:02:46 +0000 Subject: [PATCH] Fix wrong variable names and forgotten imports in message_archiving. --- src/common/message_archiving.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common/message_archiving.py b/src/common/message_archiving.py index ec95c6830..e3900f288 100644 --- a/src/common/message_archiving.py +++ b/src/common/message_archiving.py @@ -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':