mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
split message fix
This commit is contained in:
parent
2b7a0e0d95
commit
ec2e19e4bb
|
@ -121,13 +121,13 @@ void ChatForm::onSendTriggered()
|
||||||
int id = HistoryKeeper::getInstance()->addChatEntry(f->getToxID().publicKey, qt_msg_hist,
|
int id = HistoryKeeper::getInstance()->addChatEntry(f->getToxID().publicKey, qt_msg_hist,
|
||||||
Core::getInstance()->getSelfId().publicKey, timestamp, status);
|
Core::getInstance()->getSelfId().publicKey, timestamp, status);
|
||||||
|
|
||||||
MessageActionPtr ma = addSelfMessage(msg, isAction, timestamp, false);
|
MessageActionPtr ma = addSelfMessage(qt_msg, isAction, timestamp, false);
|
||||||
|
|
||||||
int rec;
|
int rec;
|
||||||
if (isAction)
|
if (isAction)
|
||||||
rec = Core::getInstance()->sendAction(f->getFriendID(), msg);
|
rec = Core::getInstance()->sendAction(f->getFriendID(), qt_msg);
|
||||||
else
|
else
|
||||||
rec = Core::getInstance()->sendMessage(f->getFriendID(), msg);
|
rec = Core::getInstance()->sendMessage(f->getFriendID(), qt_msg);
|
||||||
|
|
||||||
registerReceipt(rec, id, ma);
|
registerReceipt(rec, id, ma);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user