Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_list_view: Replace util.same_sender with sender_id check.
evykassirer71d01291b666
diff --git a/web/src/message_list_view.js b/web/src/message_list_view.jsindex d8f2e51a635..9f29467ac66 100644--- a/web/src/message_list_view.js+++ b/web/src/message_list_view.js@@ -55,7 +55,7 @@ function same_sender(a, b) {if (a === undefined || b === undefined) {return false;}- return util.same_sender(a.msg, b.msg);+ return a.msg.sender_id === b.msg.sender_id;}function same_recipient(a, b) {diff --git a/web/src/util.ts b/web/src/util.tsindex 73036831832..769ebfe54ed 100644--- a/web/src/util.ts+++ b/web/src/util.ts@@ -93,17 +93,6 @@ export const same_recipient = function util_same_recipient(a?: Recipient, b?: Rereturn false;};-export const same_sender = function util_same_sender(- a: RawMessage | undefined,- b: RawMessage | undefined,-): boolean {- return (- a !== undefined &&- b !== undefined &&- a.sender_email.toLowerCase() === b.sender_email.toLowerCase()- );-};-export function normalize_recipients(recipients: string): string {// Converts a string listing emails of message recipients// into a canonical formatting: emails sorted ASCIIbetically