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.

submessage: Remove redundant 'parseInt' statements.

Varun Singh2e8b9500223c
diff --git a/web/src/submessage.js b/web/src/submessage.js
index a765d7a2931..1559b737cc5 100644
--- a/web/src/submessage.js
+++ b/web/src/submessage.js
@@ -16,7 +16,7 @@ export function get_message_events(message) {
return undefined;
}
- message.submessages.sort((m1, m2) => Number.parseInt(m1.id, 10) - Number.parseInt(m2.id, 10));
+ message.submessages.sort((m1, m2) => m1.id - m2.id);
const events = message.submessages.map((obj) => ({
sender_id: obj.sender_id,