From 6e4052c4ab958167f56ff56dd31699b9cb8ed2f8 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 9 Nov 2023 10:52:21 +1100 Subject: [PATCH] fix: fix typo pushing new messages to redux store --- ts/models/message.ts | 3 +-- ts/state/ducks/conversations.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ts/models/message.ts b/ts/models/message.ts index e0cc2e85f..276ad1f20 100644 --- a/ts/models/message.ts +++ b/ts/models/message.ts @@ -137,7 +137,6 @@ export class MessageModel extends Backbone.Model { } public getMessageModelProps(): MessageModelPropsWithoutConvoProps { - perfStart(`getPropsMessage-${this.id}`); const propsForDataExtractionNotification = this.getPropsForDataExtractionNotification(); const propsForGroupInvitation = this.getPropsForGroupInvitation(); const propsForGroupUpdateMessage = this.getPropsForGroupUpdateMessage(); @@ -180,7 +179,7 @@ export class MessageModel extends Backbone.Model { ...this.getPropsForExpiringMessage(), }; } - perfEnd(`getPropsMessage-${this.id}`, 'getPropsMessage'); + return messageProps; } diff --git a/ts/state/ducks/conversations.ts b/ts/state/ducks/conversations.ts index 606de9f7d..6e185d046 100644 --- a/ts/state/ducks/conversations.ts +++ b/ts/state/ducks/conversations.ts @@ -538,7 +538,7 @@ function handleMessageChangedOrAdded( } // sorting happens in the selector - + state.messages.push(changedOrAddedMessageProps); state.mostRecentMessageId = updateMostRecentMessageId(state); return state; }