mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
added admin list to forum group data
This commit is contained in:
parent
0bc77749d0
commit
b20bd0a454
3 changed files with 12 additions and 2 deletions
|
@ -32,8 +32,7 @@
|
|||
|
||||
#include "retroshare/rstokenservice.h"
|
||||
#include "retroshare/rsgxsifacehelper.h"
|
||||
|
||||
|
||||
#include "serialiser/rstlvidset.h"
|
||||
|
||||
/* The Main Interface Class - for information about your Peers */
|
||||
class RsGxsForums;
|
||||
|
@ -44,6 +43,7 @@ class RsGxsForumGroup
|
|||
public:
|
||||
RsGroupMetaData mMeta;
|
||||
std::string mDescription;
|
||||
RsTlvGxsIdSet admin_list; // this is optional, and handled by the serialiser
|
||||
};
|
||||
|
||||
class RsGxsForumMsg
|
||||
|
|
|
@ -52,7 +52,15 @@ void RsGxsForumGroupItem::clear()
|
|||
void RsGxsForumGroupItem::serial_process(RsGenericSerializer::SerializeJob j,RsGenericSerializer::SerializeContext& ctx)
|
||||
{
|
||||
RsTypeSerializer::serial_process(j,ctx,TLV_TYPE_STR_DESCR,mGroup.mDescription,"mGroup.Description");
|
||||
|
||||
// image is optional
|
||||
|
||||
if(j == RsGenericSerializer::DESERIALIZE && ctx.mOffset == ctx.mSize)
|
||||
return ;
|
||||
|
||||
RsTypeSerializer::serial_process<RsTlvItem>(j,ctx,mGroup.admin_list,"admin_list") ;
|
||||
}
|
||||
|
||||
void RsGxsForumMsgItem::clear()
|
||||
{
|
||||
mMsg.mMsg.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue