mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed up function signature for subscribeToGroup() was missing token reference.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6278 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c5a323f3cc
commit
c9a8c0e4ec
@ -104,7 +104,7 @@ virtual bool getChannelAutoDownload(const RsGxsGroupId &groupid) = 0;
|
|||||||
//virtual bool groupShareKeys(const std::string &groupId, std::list<std::string>& peers);
|
//virtual bool groupShareKeys(const std::string &groupId, std::list<std::string>& peers);
|
||||||
|
|
||||||
// Overloaded subscribe fn.
|
// Overloaded subscribe fn.
|
||||||
virtual void subscribeToGroup(uint32_t token, const RsGxsGroupId &groupId, bool subscribe) = 0;
|
virtual bool subscribeToGroup(uint32_t &token, const RsGxsGroupId &groupId, bool subscribe) = 0;
|
||||||
|
|
||||||
virtual bool createGroup(uint32_t &token, RsGxsChannelGroup &group) = 0;
|
virtual bool createGroup(uint32_t &token, RsGxsChannelGroup &group) = 0;
|
||||||
virtual bool createPost(uint32_t &token, RsGxsChannelPost &post) = 0;
|
virtual bool createPost(uint32_t &token, RsGxsChannelPost &post) = 0;
|
||||||
|
@ -442,7 +442,7 @@ void p3GxsChannels::clearUnsubscribedGroup(const RsGxsGroupId &id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void p3GxsChannels::subscribeToGroup(uint32_t token, const RsGxsGroupId &groupId, bool subscribe)
|
bool p3GxsChannels::subscribeToGroup(uint32_t &token, const RsGxsGroupId &groupId, bool subscribe)
|
||||||
{
|
{
|
||||||
std::cerr << "p3GxsChannels::subscribedToGroup() id: " << groupId << " subscribe: " << subscribe;
|
std::cerr << "p3GxsChannels::subscribedToGroup() id: " << groupId << " subscribe: " << subscribe;
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
@ -451,10 +451,12 @@ void p3GxsChannels::subscribeToGroup(uint32_t token, const RsGxsGroupId &groupId
|
|||||||
groups.push_back(groupId);
|
groups.push_back(groupId);
|
||||||
|
|
||||||
// Call down to do the real work.
|
// Call down to do the real work.
|
||||||
RsGenExchange::subscribeToGroup(token, groupId, subscribe);
|
bool response = RsGenExchange::subscribeToGroup(token, groupId, subscribe);
|
||||||
|
|
||||||
// reload Group afterwards.
|
// reload Group afterwards.
|
||||||
request_SpecificSubscribedGroups(groups);
|
request_SpecificSubscribedGroups(groups);
|
||||||
|
|
||||||
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ virtual bool acknowledgeVote(const uint32_t& token, std::pair<RsGxsGroupId, RsGx
|
|||||||
|
|
||||||
|
|
||||||
// Overloaded from RsGxsIface.
|
// Overloaded from RsGxsIface.
|
||||||
virtual void subscribeToGroup(uint32_t token, const RsGxsGroupId &groupId, bool subscribe);
|
virtual bool subscribeToGroup(uint32_t &token, const RsGxsGroupId &groupId, bool subscribe);
|
||||||
|
|
||||||
// Set Statuses.
|
// Set Statuses.
|
||||||
virtual void setMessageProcessedStatus(uint32_t& token, const RsGxsGrpMsgIdPair& msgId, bool processed);
|
virtual void setMessageProcessedStatus(uint32_t& token, const RsGxsGrpMsgIdPair& msgId, bool processed);
|
||||||
|
Loading…
Reference in New Issue
Block a user