Skip to content

Commit 6fa6a84

Browse files
authored
Merge pull request #252 from SaurabhCodesAI/wire-notifyv2
Wire: add following count and group stats tracking
2 parents a21d059 + adf75e4 commit 6fa6a84

3 files changed

Lines changed: 258 additions & 50 deletions

File tree

src/retroshare/rswire.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ class RsWireGroup: public RsGxsGenericGroupData
7878
uint32_t mGroupRepublishes;
7979
uint32_t mGroupLikes;
8080
uint32_t mGroupReplies;
81-
// how do we handle these. TODO
82-
// uint32_t mGroupFollowing;
83-
// uint32_t mGroupFollowers;
81+
82+
uint32_t mGroupFollowing;
83+
uint32_t mGroupFollowers;
8484

8585
// These are this groups REF / RESPONSE msgs from others.
8686
uint32_t mRefMentions; // TODO how to handle this?
@@ -273,6 +273,10 @@ virtual bool getPulseFocus(const RsGxsGroupId &groupId, const RsGxsMessageId &ms
273273
virtual bool getContentSummaries( const RsGxsGroupId& groupId,
274274
std::vector<RsMsgMetaData>& summaries ) = 0;
275275

276+
virtual bool subscribeToGroup(uint32_t& token, const RsGxsGroupId& groupId, bool subscribe) = 0;
277+
virtual uint32_t getFollowingCount() = 0;
278+
virtual bool getSubscribedGroups(std::list<RsGxsGroupId>& groupIds) = 0;
279+
276280
};
277281

278282

0 commit comments

Comments
 (0)