Browse Source

refactor(chatform): Use offlineEngine directly

reviewable/pr4483/r1
Diadlo 8 years ago
parent
commit
8b6d3a19ef
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 6
      src/widget/form/chatform.cpp

6
src/widget/form/chatform.cpp

@ -569,7 +569,7 @@ void ChatForm::onStatusMessage(const QString& message) @@ -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) @@ -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()

Loading…
Cancel
Save