mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
makes sure channels grp folder is created immediately once a channel is created
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2935 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
bea26895ef
commit
47ba7c0df2
@ -203,7 +203,8 @@ bool p3Channels::getChannelMessage(std::string fId, std::string mId, ChannelMsgI
|
||||
|
||||
info.subject = cmsg->subject;
|
||||
info.msg = cmsg->message;
|
||||
|
||||
info.count = 0;
|
||||
info.size = 0;
|
||||
|
||||
std::list<RsTlvFileItem>::iterator fit;
|
||||
for(fit = cmsg->attachment.items.begin();
|
||||
@ -384,9 +385,16 @@ std::string p3Channels::createChannel(std::wstring channelName, std::wstring cha
|
||||
unsigned char* pngImageData, uint32_t imageSize)
|
||||
{
|
||||
|
||||
std::string id = createGroup(channelName, channelDesc, channelFlags, pngImageData, imageSize);
|
||||
std::string grpId = createGroup(channelName, channelDesc, channelFlags, pngImageData, imageSize);
|
||||
|
||||
return id;
|
||||
// create channel directory
|
||||
std::string channelDir = mChannelsDir + "/" + grpId;
|
||||
|
||||
if(RsDirUtil::checkCreateDirectory(channelDir))
|
||||
std::cerr << "p3Channels::createChannel(): Failed to create channel directory "
|
||||
<< channelDir << std::endl;
|
||||
|
||||
return grpId;
|
||||
}
|
||||
|
||||
RsSerialType *p3Channels::createSerialiser()
|
||||
|
Loading…
Reference in New Issue
Block a user