submessage: Remove redundant 'parseInt' statements.

As per 'Submessage' type in 'types.ts' , 'id' field is of type 'number'.
Hence we don't need to parse it.
This commit is contained in:
Varun Singh 2024-03-21 01:37:17 +05:30 committed by Tim Abbott
parent 85d0c0d7dd
commit 2e8b950022
1 changed files with 1 additions and 1 deletions

View File

@ -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,