From e0904c0cb39deb1b1eaee7d4aac329b0f37d9a4c Mon Sep 17 00:00:00 2001 From: trazyn Date: Mon, 14 Aug 2017 11:33:05 +0800 Subject: [PATCH] forward uploaded image --- src/js/stores/chat.js | 2 +- src/js/utils/helper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/stores/chat.js b/src/js/stores/chat.js index d6aed1a..37eefc8 100644 --- a/src/js/stores/chat.js +++ b/src/js/stores/chat.js @@ -398,7 +398,7 @@ class Chat { ToUserName: message.to, ClientMsgId: message.ClientMsgId, LocalID: message.LocalID, - MediaId: isForward ? '' : message.file.mediaId, + MediaId: message.file.mediaId, Type: 3, }, Scene: isForward ? 2 : 0, diff --git a/src/js/utils/helper.js b/src/js/utils/helper.js index 2599e0f..6812cb5 100644 --- a/src/js/utils/helper.js +++ b/src/js/utils/helper.js @@ -206,7 +206,7 @@ const helper = { }); }, - decodeHTML: (text) => { + decodeHTML: (text = '') => { return text.replace(/</g, '<').replace(/>/g, '>').replace(/&/g, '&'); },