vicariousdrama / cornychat

🌽 Corny Chat is an open source audio space built on Jam that integrates Nostr and Lightning
https://cornychat.com
GNU Affero General Public License v3.0
19 stars 6 forks source link

Feature: Add support for kicking users #55

Open vicariousdrama opened 4 months ago

vicariousdrama commented 4 months ago

A new list of kicked users can be added to the room state.

When a moderator, room owner, or admin kicks a user:

1) display a dialog to input the following

2) If moderator presses cancel, no action is performed

3) If moderator presses ok, then record

4) Notify all participants of the room that the user was kicked for X reason

5) Peers should drop connections to the kicked user

6) The user should be exited by client side effect.

7) Peers should not establish connections with users considered kicked

The Room Settings should have a way to review any kicked users, and prematurely unban them

On room updates, auto remove any expired ban records (consider moving to an archive record in the backend for review)