mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Fixed saving new message to draft.
When you write a new message and save it to draft more than once, a new message in draft is created everytime you save. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3466 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d85ec3acf2
commit
061cb2a6a8
3 changed files with 16 additions and 14 deletions
|
@ -807,6 +807,11 @@ bool p3MsgService::MessageToDraft(MessageInfo &info)
|
|||
}
|
||||
/* STORE MsgID */
|
||||
imsg[msg->msgId] = msg;
|
||||
|
||||
// return new message id
|
||||
std::ostringstream out;
|
||||
out << msg->msgId;
|
||||
info.msgId = out.str();
|
||||
}
|
||||
|
||||
IndicateConfigChanged(); /**** INDICATE MSG CONFIG CHANGED! *****/
|
||||
|
@ -1267,8 +1272,6 @@ void p3MsgService::initRsMIS(RsMsgItem *msg, MsgInfoSummary &mis)
|
|||
mis.ts = msg->sendTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
RsMsgItem *p3MsgService::initMIRsMsg(MessageInfo &info, std::string to)
|
||||
{
|
||||
RsMsgItem *msg = new RsMsgItem();
|
||||
|
@ -1320,4 +1323,3 @@ RsMsgItem *p3MsgService::initMIRsMsg(MessageInfo &info, std::string to)
|
|||
//msg->print(std::cerr);
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue