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++) {