From 4713e003d6b1efff8d04237e500455a6d3efe3d9 Mon Sep 17 00:00:00 2001 From: Piotr Suwala Date: Tue, 12 Dec 2023 17:04:31 +0100 Subject: [PATCH] feat(lib): fix a test --- lib/src/entities/message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/entities/message.ts b/lib/src/entities/message.ts index cc88af3..4ee253e 100644 --- a/lib/src/entities/message.ts +++ b/lib/src/entities/message.ts @@ -298,7 +298,7 @@ export class Message { this.restoreThread(), ]) - let allActions = this.actions ? { ...this.actions } : {} + let allActions = this.actions || {} delete allActions[MessageActionType.DELETED] for (let i = 0; i < data.length; i++) {