mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 03:29:14 +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()) {
|
||||
const chat = Store.Chat.get(chatId);
|
||||
chat.composeQuotedMsg = quotedMessage;
|
||||
chat.sendMessage(message, {quotedMsg: quotedMessage});
|
||||
window.Store.SendMessage(chat, message, {quotedMsg: quotedMessage});
|
||||
chat.composeQuotedMsg = null;
|
||||
} else {
|
||||
throw new Error('This message cannot be replied to.');
|
||||
|
||||
Reference in New Issue
Block a user