scheduled_messages: Use scheduled_message_id instead of message_id.

Using `message_id` can be confusing for API users since it can be
mistaken for the ID of the message that will be sent.
This commit is contained in:
Aman Agrawal
2023-04-21 10:48:29 +00:00
committed by Tim Abbott
parent 7bf0793c94
commit 963fe566d7
5 changed files with 12 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ export function override_scheduled_messages_data(data) {
export function edit_scheduled_message(scheduled_msg_id) {
const scheduled_msg = scheduled_messages_data.find(
(msg) => msg.message_id === scheduled_msg_id,
(msg) => msg.scheduled_message_id === scheduled_msg_id,
);
let compose_args;