Skip to content

Group Chat Admin UI #191

@MastaP

Description

@MastaP
  1. Create Group
    - Added "Create Group" button (# icon) in the sidebar header
    - New CreateGroupModal component with name, description, and visibility (public/private) options
    - Groups are created with proposed ID derived from name (e.g., "test3" → test3)
    - Creator is automatically saved as admin
  2. Delete Message (Admin/Moderator only)
    - Added trash icon on hover for messages (visible to admins/moderators)
    - Sends NIP-29 DELETE_EVENT (kind 9005) to relay
    - Message removed from local storage and UI immediately
    - Other users receive deletion event and message is removed for them too
  3. Delete Group (Admin only)
    - Added "Delete Group" option in group item dropdown menu
    - Confirmation dialog before deletion
    - Sends NIP-29 DELETE_GROUP event (kind 9008) to relay
    - Shows toast notification on success
  4. Generate Invite Link (Admin only, private groups)
    - Added "Copy Invite Link" option in dropdown for private groups
    - Generates random invite code and sends CREATE_INVITE event (kind 9009)
    - Copies shareable invite URL to clipboard
  5. Kick User (Admin only)
    - Added kick button in member list modal
    - Sends NIP-29 REMOVE_USER event (kind 9001) to relay
    - Kicked user sees persistent toast notification
    - Kicked user is redirected away from the group chat
  6. Group Deletion Handling (All users)
    - Subscribe to DELETE_GROUP events for joined groups
    - When a group is deleted, members see toast notification
    - Group is removed from local storage automatically
    - User is redirected away if viewing the deleted group

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Test

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions