Changeset - 1e8777a54268
[Not reviewed]
0 1 0
Vitaly Takmazov - 13 years ago 2012-12-10 20:05:32
vitalyster@gmail.com
do not serialize empty from attribute in delay
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/networkpluginserver.cpp
Show inline comments
 
@@ -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);
 
	}
 

	
 
	
0 comments (0 inline, 0 general)