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:
Prakhar Pratyush
2025-03-19 07:00:41 +05:30
committed by Tim Abbott
parent 7be9ac9883
commit ce7d07a498

View File

@@ -1288,6 +1288,7 @@ def generate_and_send_messages(
message.subject = random.choice(possible_topic_names[message.recipient.id])
saved_data["subject"] = message.subject
message.is_channel_message = recipient_type == Recipient.STREAM
message.date_sent = choose_date_sent(
num_messages, tot_messages, options["oldest_message_days"], options["threads"]
)