[Florob] handel remote-server-not-found MUC error. Fixes #5309
This commit is contained in:
		
							parent
							
								
									503aebd919
								
							
						
					
					
						commit
						4305882303
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2302,7 +2302,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
 | 
			
		|||
					# we are banned
 | 
			
		||||
					self.dispatch('ERROR', (_('Unable to join group chat'),
 | 
			
		||||
						_('You are banned from group chat %s.') % room_jid))
 | 
			
		||||
				elif (errcode == '404') or (errcon == 'item-not-found'):
 | 
			
		||||
				elif (errcode == '404') or (errcon in ('item-not-found',
 | 
			
		||||
				'remote-server-not-found')):
 | 
			
		||||
					if gc_control is None or gc_control.autorejoin is None:
 | 
			
		||||
						# group chat does not exist
 | 
			
		||||
						self.dispatch('ERROR', (_('Unable to join group chat'),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue