[FIX] Reply to messages with new function on Store

This commit is contained in:
Pedro Lopez
2019-05-29 22:50:41 -04:00
parent bf0fe8496c
commit ef4a59a4c4

View File

@@ -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.');