Skip to content

feat: add country code to GXS group metadata#267

Closed
AniruthKarthik wants to merge 2 commits intoRetroShare:masterfrom
AniruthKarthik:feat/country-flags
Closed

feat: add country code to GXS group metadata#267
AniruthKarthik wants to merge 2 commits intoRetroShare:masterfrom
AniruthKarthik:feat/country-flags

Conversation

@AniruthKarthik
Copy link

@AniruthKarthik AniruthKarthik commented Feb 17, 2026

This PR adds a mCountryCode field to the GXS group metadata. This is the core library implementation required to support country flags in Channels, Forums, and Posted boards.

Changes:

  • Version Increment: Incremented RS_GXS_GRP_META_DATA_CURRENT_API_VERSION to 0xaf02 (Version 3) to accommodate the new field.
  • Metadata Expansion: Added mCountryCode (string) to both RsGxsGrpMetaData (internal) and RsGroupMetaData (serializable).
  • Serialization Logic:
    • Updated rsgxsdata.cc to handle serialization/deserialization for the new Version 3.
    • Maintained backward compatibility by ensuring Version 1 and Version 2 metadata can still be read (mapping to an empty country code).
  • Data Mapping: Updated the assignment operator and rsgxsitems.cc to ensure the country code is correctly propagated between internal GXS structures and
    the serializable items.

Related GUI PR:
This PR provides the backend for: RetroShare/RetroShare#3162

@defnax
Copy link
Contributor

defnax commented Feb 18, 2026

Hi we need in this feature best in RsGxsForumGroup, not in metadata

@AniruthKarthik
Copy link
Author

@defnax kindly review

@AniruthKarthik AniruthKarthik closed this by deleting the head repository Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants