[FIX] Reply to messages with new function on Store
This commit is contained in:
parent
bf0fe8496c
commit
ef4a59a4c4
1 changed files with 1 additions and 1 deletions
|
|
@ -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.');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue