Added update of message model when messages changed

This commit is contained in:
thunder2 2021-12-30 13:53:10 +01:00
parent c01f98feb9
commit 5d9ce662e9
2 changed files with 2 additions and 0 deletions

View File

@ -1422,6 +1422,7 @@ bool p3MsgService::MessageToDraft(MessageInfo &info, const std::string &msgParen
auto pEvent = std::make_shared<RsMailStatusEvent>();
pEvent->mMailStatusEventCode = RsMailStatusEventCode::MESSAGE_SENT;
pEvent->mChangedMsgIds.insert(std::to_string(msg->msgId));
rsEvents->postEvent(pEvent);
return true;

View File

@ -310,6 +310,7 @@ void MessagesDialog::handleEvent_main_thread(std::shared_ptr<const RsEvent> even
case RsMailStatusEventCode::MESSAGE_SENT:
case RsMailStatusEventCode::MESSAGE_REMOVED:
case RsMailStatusEventCode::NEW_MESSAGE:
mMessageModel->updateMessages();
updateMessageSummaryList();
break;
default: