mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	scheduled-messages: Simplify message_to type in check_schedule_message.
As of commit 38f6807af1, we accept only stream and user IDs for
the recipient information for scheduled messages, which means we
can simplify the type for `message_to` in `check_schedule_message`.
			
			
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							1ad0ad8ece
						
					
				
				
					commit
					a2a50e1408
				
			@@ -1,6 +1,6 @@
 | 
			
		||||
import datetime
 | 
			
		||||
import logging
 | 
			
		||||
from typing import List, Optional, Sequence, Tuple, Union
 | 
			
		||||
from typing import List, Optional, Sequence, Tuple
 | 
			
		||||
 | 
			
		||||
import orjson
 | 
			
		||||
from django.conf import settings
 | 
			
		||||
@@ -61,7 +61,7 @@ def check_schedule_message(
 | 
			
		||||
    sender: UserProfile,
 | 
			
		||||
    client: Client,
 | 
			
		||||
    recipient_type_name: str,
 | 
			
		||||
    message_to: Union[Sequence[str], Sequence[int]],
 | 
			
		||||
    message_to: List[int],
 | 
			
		||||
    topic_name: Optional[str],
 | 
			
		||||
    message_content: str,
 | 
			
		||||
    scheduled_message_id: Optional[int],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user