Fix Message Forward (#3910)
This commit is contained in:
parent
412b7022dc
commit
829dd7f6d0
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ exports.LoadUtils = () => {
|
||||||
window.WWebJS.forwardMessage = async (chatId, msgId) => {
|
window.WWebJS.forwardMessage = async (chatId, msgId) => {
|
||||||
const msg = window.Store.Msg.get(msgId) || (await window.Store.Msg.getMessagesById([msgId]))?.messages?.[0];
|
const msg = window.Store.Msg.get(msgId) || (await window.Store.Msg.getMessagesById([msgId]))?.messages?.[0];
|
||||||
const chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
|
const chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
|
||||||
return window.Store.ForwardUtils.forwardMessages(chat, [msg], true, true);
|
return await window.Store.ForwardUtils.forwardMessages({'chat': chat, 'msgs' : [msg], 'multicast': true, 'includeCaption': true, 'appendedText' : undefined});
|
||||||
};
|
};
|
||||||
|
|
||||||
window.WWebJS.sendSeen = async (chatId) => {
|
window.WWebJS.sendSeen = async (chatId) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue