mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	messages: Support passing user ID to sender operator.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							54304b4008
						
					
				
				
					commit
					c067c155aa
				
			@@ -337,3 +337,9 @@ def check_string_or_int_list(var_name: str, val: object) -> Optional[str]:
 | 
			
		||||
        return _('%s is not a string or an integer list') % (var_name,)
 | 
			
		||||
 | 
			
		||||
    return check_list(check_int)(var_name, val)
 | 
			
		||||
 | 
			
		||||
def check_string_or_int(var_name: str, val: object) -> Optional[str]:
 | 
			
		||||
    if isinstance(val, str) or isinstance(val, int):
 | 
			
		||||
        return None
 | 
			
		||||
 | 
			
		||||
    return _('%s is not a string or integer') % (var_name,)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user