1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(chatform): Use offlineEngine directly

This commit is contained in:
Diadlo 2017-05-28 11:15:44 +03:00
parent 0b5b3fcf1a
commit 8b6d3a19ef
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -569,7 +569,7 @@ void ChatForm::onStatusMessage(const QString& message)
void ChatForm::onReceiptReceived(quint32 friendId, int receipt)
{
if (friendId == f->getFriendId()) {
f->getChatForm()->getOfflineMsgEngine()->dischargeReceipt(receipt);
offlineEngine->dischargeReceipt(receipt);
}
}
@ -654,12 +654,12 @@ void ChatForm::onAvatarRemoved(uint32_t friendId)
void ChatForm::clearChatArea(bool notInForm)
{
GenericChatForm::clearChatArea(notInForm);
f->getChatForm()->getOfflineMsgEngine()->removeAllReceipts();
offlineEngine->removeAllReceipts();
}
void ChatForm::onDeliverOfflineMessages()
{
f->getChatForm()->getOfflineMsgEngine()->deliverOfflineMsgs();
offlineEngine->deliverOfflineMsgs();
}
void ChatForm::onLoadChatHistory()