HistorySync: Connect to different event for counting
This lets us better count how many messages we retrieved
This commit is contained in:
parent
9bca51eb69
commit
766458f394
1 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ class HistorySyncAssistant(Gtk.Assistant):
|
||||||
gajim.ged.register_event_handler('archiving-finished',
|
gajim.ged.register_event_handler('archiving-finished',
|
||||||
ged.PRECORE,
|
ged.PRECORE,
|
||||||
self._nec_archiving_finished)
|
self._nec_archiving_finished)
|
||||||
gajim.ged.register_event_handler('mam-decrypted-message-received',
|
gajim.ged.register_event_handler('raw-mam-message-received',
|
||||||
ged.PRECORE,
|
ged.PRECORE,
|
||||||
self._nec_mam_message_received)
|
self._nec_mam_message_received)
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ class HistorySyncAssistant(Gtk.Assistant):
|
||||||
gajim.ged.remove_event_handler('archiving-finished',
|
gajim.ged.remove_event_handler('archiving-finished',
|
||||||
ged.PRECORE,
|
ged.PRECORE,
|
||||||
self._nec_archiving_finished)
|
self._nec_archiving_finished)
|
||||||
gajim.ged.remove_event_handler('mam-decrypted-message-received',
|
gajim.ged.remove_event_handler('raw-mam-message-received',
|
||||||
ged.PRECORE,
|
ged.PRECORE,
|
||||||
self._nec_mam_message_received)
|
self._nec_mam_message_received)
|
||||||
del gajim.interface.instances[self.account]['history_sync']
|
del gajim.interface.instances[self.account]['history_sync']
|
||||||
|
@ -179,7 +179,7 @@ class HistorySyncAssistant(Gtk.Assistant):
|
||||||
if obj.conn.name != self.account:
|
if obj.conn.name != self.account:
|
||||||
return
|
return
|
||||||
|
|
||||||
if obj.msg_obj.query_id != self.query_id:
|
if obj.result.getAttr('queryid') != self.query_id:
|
||||||
return
|
return
|
||||||
|
|
||||||
log.debug('received message')
|
log.debug('received message')
|
||||||
|
|
Loading…
Add table
Reference in a new issue