message_events: Convert module to typescript.

This commit is contained in:
evykassirer
2024-11-24 23:19:54 -08:00
committed by Tim Abbott
parent f241aa77c1
commit 7bd4016254
11 changed files with 116 additions and 64 deletions

View File

@@ -274,8 +274,8 @@ export function confirm_delete_all_drafts(): void {
export function rename_stream_recipient(
old_stream_id: number,
old_topic: string,
new_stream_id: number,
new_topic: string,
new_stream_id: number | undefined,
new_topic: string | undefined,
): void {
for (const [draft_id, draft] of Object.entries(draft_model.get())) {
if (draft.type !== "stream" || draft.stream_id === undefined) {