CHG: changed the base message class to only use sender uuid as id
This commit is contained in:
@@ -25,6 +25,20 @@ namespace WHISPER {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Message::Message(std::string senderUUID, MsgTopics topic, MsgType Type,SourceType src):
|
||||
senderUUID_(senderUUID),topic_(topic),sourceType_(src),msgType_(Type)
|
||||
{
|
||||
msg = messages::header::Message();
|
||||
|
||||
if(msg.IsInitialized())
|
||||
{
|
||||
msg.set_topic(topic);
|
||||
msg.set_sourcetype(sourceType_);
|
||||
msg.set_msgtype(msgType_);
|
||||
msg.set_senderuuid(senderUUID_);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user