mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-11 07:29:38 -05:00
Added update of message model when messages changed
This commit is contained in:
parent
c01f98feb9
commit
5d9ce662e9
@ -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;
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user