Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

web-shared: Update references to "private message" and "PM".

Lauryn Menardc8b04fc56267
diff --git a/web/shared/src/typeahead.ts b/web/shared/src/typeahead.ts
index d306fbc6a45..a74fa956b43 100644
--- a/web/shared/src/typeahead.ts
+++ b/web/shared/src/typeahead.ts
@@ -75,10 +75,11 @@ export function query_matches_string(
function clean_query(query: string): string {
query = remove_diacritics(query);
- // When `abc ` with a space at the end is typed in a
- // contenteditable widget such as the composebox PM section, the
- // space at the end was a `no break-space (U+00A0)` instead of
- // `space (U+0020)`, which lead to no matches in those cases.
+ // When `abc ` with a space at the end is typed in
+ // a content-editable widget such as the composebox
+ // direct message section, the space at the end was
+ // a `no break-space (U+00A0)` instead of `space (U+0020)`,
+ // which lead to no matches in those cases.
query = query.replace(/\u00A0/g, " ");
return query;
diff --git a/web/shared/src/typing_status.ts b/web/shared/src/typing_status.ts
index 99e42da929f..294aa386956 100644
--- a/web/shared/src/typing_status.ts
+++ b/web/shared/src/typing_status.ts
@@ -85,8 +85,8 @@ export function maybe_ping_server(worker: TypingStatusWorker, recipient_ids: num
* rate, and keeps a timer to send a "stopped typing" notice when the user
* hasn't typed for a few seconds.
*
- * Zulip supports typing notifications only for PMs (both 1:1 and group); so
- * composing a stream message should be treated like composing no message at
+ * Zulip supports typing notifications only for both 1:1 and group direct messages;
+ * so composing a stream message should be treated like composing no message at
* all.
*
* Call with `new_recipient_ids` of `null` when the user actively stops
@@ -97,11 +97,11 @@ export function maybe_ping_server(worker: TypingStatusWorker, recipient_ids: num
* See docs/subsystems/typing-indicators.md for detailed background on the
* typing indicators system.
*
- * @param {*} worker Callbacks for reaching the real world. See typing.js
+ * @param {*} worker Callbacks for reaching the real world. See typing.js
* for implementations.
- * @param {*} new_recipient_ids The users the PM being composed is addressed to,
- * as a sorted array of user IDs; or `null` if no PM is being composed
- * anymore.
+ * @param {*} new_recipient_ids The users the direct message being composed is
+ * addressed to, as a sorted array of user IDs; or `null` if no direct message
+ * is being composed anymore.
*/
export function update(worker: TypingStatusWorker, new_recipient_ids: number[] | null): void {
if (state !== null) {