mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	populate_db: Fix is_channel_message incorrectly set to True for DMs.
				
					
				
			We introduced `is_channel_message` flag in 90d76b692b.
While populating messages in dev environment, we were not setting
it to False for DMs / group DMs.
This commit fixes that bug.
			
			
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							7be9ac9883
						
					
				
				
					commit
					ce7d07a498
				
			@@ -1288,6 +1288,7 @@ def generate_and_send_messages(
 | 
				
			|||||||
            message.subject = random.choice(possible_topic_names[message.recipient.id])
 | 
					            message.subject = random.choice(possible_topic_names[message.recipient.id])
 | 
				
			||||||
            saved_data["subject"] = message.subject
 | 
					            saved_data["subject"] = message.subject
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        message.is_channel_message = recipient_type == Recipient.STREAM
 | 
				
			||||||
        message.date_sent = choose_date_sent(
 | 
					        message.date_sent = choose_date_sent(
 | 
				
			||||||
            num_messages, tot_messages, options["oldest_message_days"], options["threads"]
 | 
					            num_messages, tot_messages, options["oldest_message_days"], options["threads"]
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user