From 8da51f4c45b565c2eae6bcd99aaf93632ac37f33 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Wed, 23 Feb 2022 15:17:03 +0200 Subject: [PATCH] Fix forwarding messages from saved --- src/lib/appManagers/appMessagesManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/appManagers/appMessagesManager.ts b/src/lib/appManagers/appMessagesManager.ts index e559df9a..4642b2ca 100644 --- a/src/lib/appManagers/appMessagesManager.ts +++ b/src/lib/appManagers/appMessagesManager.ts @@ -2000,8 +2000,8 @@ export class AppMessagesManager { message.fwd_from = this.generateForwardHeader(peerId, originalMessage); keys.push('views', 'forwards'); - if(message.fwd_from.from_name) { - message + if(message.fwd_from?.from_name) { + delete message.from_id; } }