web-src: Update comments with "private message" or "PM".

Updates comments in files the `web/src` directory to use "direct
message" instead of "private message" or "PM".
This commit is contained in:
Lauryn Menard
2023-06-16 13:23:39 +02:00
committed by Tim Abbott
parent 5be0f80135
commit 4d3d9bcefa
28 changed files with 98 additions and 87 deletions

View File

@@ -144,10 +144,10 @@ export function create_message_object() {
message.private_message_recipient = recipient;
message.to_user_ids = people.email_list_to_user_ids_string(emails);
// Note: The `undefined` case is for situations like the
// is_zephyr_mirror_realm case where users may be
// automatically created when you try to send a private
// message to their email address.
// Note: The `undefined` case is for situations like
// the is_zephyr_mirror_realm case where users may
// be automatically created when you try to send a
// direct message to their email address.
if (message.to_user_ids !== undefined) {
message.to = people.user_ids_string_to_ids_array(message.to_user_ids);
}