Merge pull request #1987 from PhenomRetroShare/Fix_MessageSentTags

Fix Message Sent keeps Tags
This commit is contained in:
csoler 2020-05-30 18:27:42 +02:00 committed by GitHub
commit 93f7f4fdd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1187,11 +1187,15 @@ bool p3MsgService::MessageSend(MessageInfo &info)
/* use processMsg to get the new msgId */
msg->recvTime = time(NULL);
msg->msgId = getNewUniqueMsgId();
msg->msgFlags |= RS_MSG_OUTGOING;
imsg[msg->msgId] = msg;
// Update info for caller
info.msgId = std::to_string(msg->msgId);
info .msgflags = msg->msgFlags;
RsServer::notify()->notifyListChange(NOTIFY_LIST_MESSAGELIST,NOTIFY_TYPE_ADD);
}