mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 04:29:15 +00:00
[FIX] Reply to messages with new function on Store
This commit is contained in:
@@ -51,7 +51,7 @@ class Message extends Base {
|
|||||||
if(quotedMessage.canReply()) {
|
if(quotedMessage.canReply()) {
|
||||||
const chat = Store.Chat.get(chatId);
|
const chat = Store.Chat.get(chatId);
|
||||||
chat.composeQuotedMsg = quotedMessage;
|
chat.composeQuotedMsg = quotedMessage;
|
||||||
chat.sendMessage(message, {quotedMsg: quotedMessage});
|
window.Store.SendMessage(chat, message, {quotedMsg: quotedMessage});
|
||||||
chat.composeQuotedMsg = null;
|
chat.composeQuotedMsg = null;
|
||||||
} else {
|
} else {
|
||||||
throw new Error('This message cannot be replied to.');
|
throw new Error('This message cannot be replied to.');
|
||||||
|
|||||||
Reference in New Issue
Block a user