fixed removal of messages in unsubscribed groups

This commit is contained in:
csoler 2016-06-17 20:46:58 -04:00
parent 886d896151
commit 4df4bb638f

View File

@ -90,10 +90,13 @@ bool RsGxsMessageCleanUp::clean()
// if not subscribed remove messages (can optimise this really)
remove = remove || (grpMeta->mSubscribeFlags & GXS_SERV::GROUP_SUBSCRIBE_NOT_SUBSCRIBED);
remove = remove || !(grpMeta->mSubscribeFlags & GXS_SERV::GROUP_SUBSCRIBE_SUBSCRIBED);
if( remove )
{
req[grpId].push_back(meta->mMsgId);
std::cerr << "Scheduling msg id " << meta->mMsgId << " in grp " << grpId << " for removal." << std::endl;
}
delete meta;