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_list_view: Type render's `where` parameter as a union.

Pratik Chanda358ad618979f
diff --git a/web/src/message_list_view.ts b/web/src/message_list_view.ts
index cf8c00cf803..9914b7db24d 100644
--- a/web/src/message_list_view.ts
+++ b/web/src/message_list_view.ts
@@ -1129,7 +1129,7 @@ export class MessageListView {
render(
messages: Message[],
- where: string,
+ where: "top" | "bottom",
messages_are_new = false,
): {need_user_to_scroll: boolean} | undefined {
// This function processes messages into chunks with separators between them,