Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_util: Improve code readability.
Aman Agrawal1bc047a80c6f
diff --git a/web/src/message_util.ts b/web/src/message_util.tsindex a4fb4722587..d39c1be3df7 100644--- a/web/src/message_util.ts+++ b/web/src/message_util.ts@@ -1,5 +1,3 @@-import assert from "minimalistic-assert";-import {all_messages_data} from "./all_messages_data.ts";import * as message_lists from "./message_lists.ts";import * as message_store from "./message_store.ts";@@ -94,8 +92,7 @@ export function get_direct_message_permission_hints(const dm_conversation =message_lists.current?.data?.filter.terms_with_operator("dm")[0]?.operand;if (dm_conversation) {- const current_user_ids_string = dm_conversation.join(",");- assert(current_user_ids_string !== undefined);+ const current_user_ids_string = String(dm_conversation);// If it matches and the messages for the current filter are fetched,// then there are certainly no messages in the conversation.if (