Ask for discovery information (and archive) after SM is enabled. Fixes #7299
This commit is contained in:
		
							parent
							
								
									ef1d89bb95
								
							
						
					
					
						commit
						2da62b5c17
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1660,7 +1660,7 @@ class Connection(CommonConnection, ConnectionHandlers):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # If we are not resuming, we ask for discovery info
 | 
					        # If we are not resuming, we ask for discovery info
 | 
				
			||||||
        # and archiving preferences
 | 
					        # 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.request_message_archiving_preferences()
 | 
				
			||||||
            self.discoverInfo(gajim.config.get_per('accounts', self.name,
 | 
					            self.discoverInfo(gajim.config.get_per('accounts', self.name,
 | 
				
			||||||
                'hostname'), id_prefix='Gajim_')
 | 
					                'hostname'), id_prefix='Gajim_')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue