From ec2e19e4bbca54fe8dcc8b7490b0fd8a9e0d9716 Mon Sep 17 00:00:00 2001 From: apprb Date: Wed, 12 Nov 2014 22:13:46 +0900 Subject: [PATCH] split message fix --- src/widget/form/chatform.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widget/form/chatform.cpp b/src/widget/form/chatform.cpp index 9850e4c36..7e52136ed 100644 --- a/src/widget/form/chatform.cpp +++ b/src/widget/form/chatform.cpp @@ -121,13 +121,13 @@ void ChatForm::onSendTriggered() int id = HistoryKeeper::getInstance()->addChatEntry(f->getToxID().publicKey, qt_msg_hist, Core::getInstance()->getSelfId().publicKey, timestamp, status); - MessageActionPtr ma = addSelfMessage(msg, isAction, timestamp, false); + MessageActionPtr ma = addSelfMessage(qt_msg, isAction, timestamp, false); int rec; if (isAction) - rec = Core::getInstance()->sendAction(f->getFriendID(), msg); + rec = Core::getInstance()->sendAction(f->getFriendID(), qt_msg); else - rec = Core::getInstance()->sendMessage(f->getFriendID(), msg); + rec = Core::getInstance()->sendMessage(f->getFriendID(), qt_msg); registerReceipt(rec, id, ma); }