Ask for discovery information (and archive) after SM is enabled. Fixes #7299

This commit is contained in:
Jefry Lagrange 2013-02-23 11:41:36 -04:00
parent ef1d89bb95
commit 2da62b5c17
1 changed files with 1 additions and 1 deletions

View File

@ -1660,7 +1660,7 @@ class Connection(CommonConnection, ConnectionHandlers):
# If we are not resuming, we ask for discovery info
# and archiving preferences
if not self.sm.resuming:
if not self.sm.supports_sm or (not self.sm.resuming and self.sm.enabled):
self.request_message_archiving_preferences()
self.discoverInfo(gajim.config.get_per('accounts', self.name,
'hostname'), id_prefix='Gajim_')