Show some info for USER_BANNED_IN_CHANNEL error.
This commit is contained in:
		
							parent
							
								
									07a274f927
								
							
						
					
					
						commit
						cd6a189990
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1046,6 +1046,9 @@ bool MainWidget::sendMessageFail(const RPCError &error) {
 | 
			
		|||
	if (error.type() == qstr("PEER_FLOOD")) {
 | 
			
		||||
		Ui::show(Box<InformBox>(PeerFloodErrorText(PeerFloodType::Send)));
 | 
			
		||||
		return true;
 | 
			
		||||
	} else if (error.type() == qstr("USER_BANNED_IN_CHANNEL")) {
 | 
			
		||||
		Ui::show(Box<InformBox>(lang(lng_group_not_accessible)));
 | 
			
		||||
		return true;
 | 
			
		||||
	}
 | 
			
		||||
	return false;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue