Fix Message Forward (#3680)
* Fix Message Forward * Fix Message Forward --------- Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
parent
ca30ac4b18
commit
35133a72fc
2 changed files with 2 additions and 7 deletions
|
|
@ -6,12 +6,7 @@ exports.LoadUtils = () => {
|
|||
window.WWebJS.forwardMessage = async (chatId, msgId) => {
|
||||
const msg = window.Store.Msg.get(msgId) || (await window.Store.Msg.getMessagesById([msgId]))?.messages?.[0];
|
||||
const chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
|
||||
|
||||
if (window.compareWwebVersions(window.Debug.VERSION, '>', '2.3000.0')) {
|
||||
return window.Store.ForwardUtils.forwardMessagesToChats([msg], [chat], true);
|
||||
} else {
|
||||
return chat.forwardMessages([msg]);
|
||||
}
|
||||
return window.Store.ForwardUtils.forwardMessages(chat, [msg], true, true);
|
||||
};
|
||||
|
||||
window.WWebJS.sendSeen = async (chatId) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue