Closed
Conversation
Replace visibility/access enums with 4 boolean markers per NIP-29 spec: - isPrivate: only members can read group messages - isRestricted: only members can write messages - isHidden: relay hides metadata from non-members - isClosed: join requests are ignored (invite-only) Updated GroupMetadata in types.ts and GroupInfo in db.ts
- Update groupMetadata() to parse all 4 presence-based markers - Update fetchGroupMetadata() to parse all 4 markers - Update useEditGroup() to publish presence-only tags - Remove explicit ["public"] and ["open"] tags (not in new spec) Markers are now boolean flags based on tag presence: - isPrivate, isRestricted, isHidden, isClosed
- Replace visibility/access Select dropdowns with 4 toggle switches - Update form schemas with boolean fields: isPrivate, isRestricted, isHidden, isClosed - Add icons for each marker: BookLock, PenOff, EyeOff, ShieldOff - Update create.tsx, create-on-relay.tsx, and edit.tsx
- Replace visibility/access state with 4 boolean states: isPrivate, isRestricted, isHidden, isClosed - Update privacy tab UI with 4 toggle sections and icons - Update handleSaveInformation and handleSavePrivacy functions - Update join requests condition to use isClosed
- Update status icons to check boolean markers instead of enum values - Show icons only when markers are active (isPrivate, isRestricted, isHidden, isClosed) - Add new icons for restricted and hidden markers - Remove unused BookOpen and Shield icon imports
- Add badge display for all 4 access markers - Show badges only when markers are active - Add icons for visual distinction
- Add translations for private, restricted, hidden, closed markers - Update group.create.form with access-settings section - Update group.metadata with new marker structure - Update group.settings.privacy with new marker labels
For groups with isClosed marker, join requests are ignored per NIP-29. Update chat.tsx to not show join request button for closed groups since these requests won't be honored by the relay.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.