Fix wrong variable names and forgotten imports in message_archiving.
This commit is contained in:
parent
f25590d212
commit
0bdd592e4d
|
@ -21,8 +21,12 @@
|
||||||
import nbxmpp
|
import nbxmpp
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common import ged
|
from common import ged
|
||||||
|
from common import helpers
|
||||||
from common.connection_handlers_events import ArchivingReceivedEvent
|
from common.connection_handlers_events import ArchivingReceivedEvent
|
||||||
|
|
||||||
|
from calendar import timegm
|
||||||
|
from time import localtime
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
log = logging.getLogger('gajim.c.message_archiving')
|
log = logging.getLogger('gajim.c.message_archiving')
|
||||||
|
|
||||||
|
@ -225,7 +229,7 @@ class ConnectionArchive136(ConnectionArchive):
|
||||||
msg=payload[0].getData(), nick=nick)
|
msg=payload[0].getData(), nick=nick)
|
||||||
elif payload[0].getName() == 'message':
|
elif payload[0].getName() == 'message':
|
||||||
print('Not implemented')
|
print('Not implemented')
|
||||||
chat = iq_obj.getTag('chat')
|
chat = obj.stanza.getTag('chat')
|
||||||
if chat:
|
if chat:
|
||||||
with_ = chat.getAttr('with')
|
with_ = chat.getAttr('with')
|
||||||
start_ = chat.getAttr('start')
|
start_ = chat.getAttr('start')
|
||||||
|
@ -266,7 +270,7 @@ class ConnectionArchive136(ConnectionArchive):
|
||||||
del self.awaiting_answers[id_]
|
del self.awaiting_answers[id_]
|
||||||
|
|
||||||
elif self.awaiting_answers[id_][0] == ARCHIVING_MODIFICATIONS_ARRIVED:
|
elif self.awaiting_answers[id_][0] == ARCHIVING_MODIFICATIONS_ARRIVED:
|
||||||
modified = iq_obj.getTag('modified')
|
modified = obj.stanza.getTag('modified')
|
||||||
if modified:
|
if modified:
|
||||||
for element in modified.getChildren():
|
for element in modified.getChildren():
|
||||||
if element.getName() == 'changed':
|
if element.getName() == 'changed':
|
||||||
|
|
Loading…
Reference in New Issue