From d44a525b022816efb7032acd7164ebcc6d80e917 Mon Sep 17 00:00:00 2001 From: Pedro Lopez Date: Sat, 30 Oct 2021 00:12:06 -0400 Subject: [PATCH] fix: serialize message id `remote` when fetching messages close #825 --- src/util/Injected.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/Injected.js b/src/util/Injected.js index 5bf0884..389bbba 100644 --- a/src/util/Injected.js +++ b/src/util/Injected.js @@ -330,6 +330,10 @@ exports.LoadUtils = () => { if(msg.replyButtons) { msg.replyButtons = JSON.parse(JSON.stringify(msg.replyButtons)); } + + if(typeof msg.id.remote === 'object') { + msg.id.remote = msg.id.remote._serialized; + } delete msg.pendingAckUpdate;