mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-25 14:56:28 -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>();
|
auto pEvent = std::make_shared<RsMailStatusEvent>();
|
||||||
pEvent->mMailStatusEventCode = RsMailStatusEventCode::MESSAGE_SENT;
|
pEvent->mMailStatusEventCode = RsMailStatusEventCode::MESSAGE_SENT;
|
||||||
|
pEvent->mChangedMsgIds.insert(std::to_string(msg->msgId));
|
||||||
rsEvents->postEvent(pEvent);
|
rsEvents->postEvent(pEvent);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -310,6 +310,7 @@ void MessagesDialog::handleEvent_main_thread(std::shared_ptr<const RsEvent> even
|
|||||||
case RsMailStatusEventCode::MESSAGE_SENT:
|
case RsMailStatusEventCode::MESSAGE_SENT:
|
||||||
case RsMailStatusEventCode::MESSAGE_REMOVED:
|
case RsMailStatusEventCode::MESSAGE_REMOVED:
|
||||||
case RsMailStatusEventCode::NEW_MESSAGE:
|
case RsMailStatusEventCode::NEW_MESSAGE:
|
||||||
|
mMessageModel->updateMessages();
|
||||||
updateMessageSummaryList();
|
updateMessageSummaryList();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user