message: Remove unused recipient_id.

I confirmed this isn't used in any .hbs templates, so
it doesn't seem to be being used anywhere.
This commit is contained in:
Evy Kassirer
2025-09-08 17:28:56 -07:00
committed by Tim Abbott
parent 6027344ad5
commit d3ef72f1d6
4 changed files with 0 additions and 6 deletions

View File

@@ -75,7 +75,6 @@ for msg in result["messages"]:
"edit_history", "edit_history",
"topic_links", "topic_links",
"avatar_url", "avatar_url",
"recipient_id",
"content_type", "content_type",
"client", "client",
"sender_realm_str", "sender_realm_str",

View File

@@ -76,7 +76,6 @@ export const raw_message_schema = z.intersection(
last_edit_timestamp: z.optional(z.number()), last_edit_timestamp: z.optional(z.number()),
last_moved_timestamp: z.optional(z.number()), last_moved_timestamp: z.optional(z.number()),
reactions: z.array(message_reaction_schema), reactions: z.array(message_reaction_schema),
recipient_id: z.number(),
sender_email: z.string(), sender_email: z.string(),
sender_full_name: z.string(), sender_full_name: z.string(),
sender_id: z.number(), sender_id: z.number(),

View File

@@ -615,7 +615,6 @@ type ConversationContext = {
is_private: true; is_private: true;
user_ids_string: string; user_ids_string: string;
rendered_pm_with_html: string; rendered_pm_with_html: string;
recipient_id: number;
pm_url: string; pm_url: string;
is_group: boolean; is_group: boolean;
is_bot: boolean; is_bot: boolean;
@@ -725,7 +724,6 @@ function format_conversation(conversation_data: ConversationData): ConversationC
}), }),
) )
.sort(); .sort();
const recipient_id = last_msg.recipient_id;
const pm_url = last_msg.pm_with_url; const pm_url = last_msg.pm_with_url;
const is_group = last_msg.display_recipient.length > 2; const is_group = last_msg.display_recipient.length > 2;
const has_unread_mention = const has_unread_mention =
@@ -764,7 +762,6 @@ function format_conversation(conversation_data: ConversationData): ConversationC
"long", "long",
"conjunction", "conjunction",
), ),
recipient_id,
pm_url, pm_url,
is_group, is_group,
is_bot, is_bot,

View File

@@ -51,7 +51,6 @@ export const server_message_schema = z.intersection(
last_edit_timestamp: z.optional(z.number()), last_edit_timestamp: z.optional(z.number()),
last_moved_timestamp: z.optional(z.number()), last_moved_timestamp: z.optional(z.number()),
reactions: message_reaction_schema, reactions: message_reaction_schema,
recipient_id: z.number(),
sender_email: z.string(), sender_email: z.string(),
sender_full_name: z.string(), sender_full_name: z.string(),
sender_id: z.number(), sender_id: z.number(),