do not serialize empty from attribute in delay
This commit is contained in:
parent
f314577e70
commit
1e8777a542
1 changed files with 3 additions and 1 deletions
|
@ -656,7 +656,9 @@ void NetworkPluginServer::handleConvMessagePayload(const std::string &data, bool
|
|||
|
||||
if (!payload.timestamp().empty()) {
|
||||
boost::posix_time::ptime timestamp = boost::posix_time::from_iso_string(payload.timestamp());
|
||||
msg->addPayload(boost::make_shared<Swift::Delay>(timestamp));
|
||||
boost::shared_ptr<Swift::Delay> delay(boost::make_shared<Swift::Delay>());
|
||||
delay->setStamp(timestamp);
|
||||
msg->addPayload(delay);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue