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.

message_util: Fix implicit use of any.

Anders Kaseorga3507b8a117d
diff --git a/web/src/message_util.ts b/web/src/message_util.ts
index d32d2f0d9ef..78cdd436951 100644
--- a/web/src/message_util.ts
+++ b/web/src/message_util.ts
@@ -100,7 +100,7 @@ export function get_max_message_id_in_stream(stream_id: number): number {
}
export function get_topics_for_message_ids(message_ids: number[]): Map<string, [number, string]> {
- const topics = new Map(); // key = stream_id:topic
+ const topics = new Map<string, [number, string]>(); // key = stream_id:topic
for (const msg_id of message_ids) {
// message_store still has data on deleted messages when this runs.
const message = message_store.get(msg_id);