Merge pull request #227 from PhenomRetroShare/Fix_DefaultGxsId

Fix default Identity on Chat
This commit is contained in:
Cyril Soler 2015-12-30 10:03:32 -05:00
commit f8be606e7d

View File

@ -1898,7 +1898,6 @@ void DistributedChatService::addToSaveList(std::list<RsItem*>& list) const
bool DistributedChatService::processLoadListItem(const RsItem *item) bool DistributedChatService::processLoadListItem(const RsItem *item)
{ {
const RsConfigKeyValueSet *vitem = NULL ; const RsConfigKeyValueSet *vitem = NULL ;
_default_identity.clear() ;
if(NULL != (vitem = dynamic_cast<const RsConfigKeyValueSet*>(item))) if(NULL != (vitem = dynamic_cast<const RsConfigKeyValueSet*>(item)))
for(std::list<RsTlvKeyValue>::const_iterator kit = vitem->tlvkvs.pairs.begin(); kit != vitem->tlvkvs.pairs.end(); ++kit) for(std::list<RsTlvKeyValue>::const_iterator kit = vitem->tlvkvs.pairs.begin(); kit != vitem->tlvkvs.pairs.end(); ++kit)