LOC-7: Ability to close a room



Issue Information

Issue Type: New Feature
 
Priority: Major
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: LocalChat (LOC)
Resolution: Done (2018-05-12 16:44:07)
Target version: V0.0.2,
Components: Client , Server ,

Created: 2018-05-12 16:24:44
Time Spent Working


Description
Currently there's no way to close a room (other than restarting the server). So that functionality needs to be added in.

When a closure request is received (from the room owner only) the following should happen

- All users should be disinvited (we can probably use the ban functionality for that)
- All messages for that room should be purged
- The room should be removed from the rooms table

The client will obviously need updating to support that too. I'd suggest /room close [roompass]. The pass being purely to reduce the likelihood of accidentally triggering it.


Toggle State Changes

Activity


btasker changed status from 'Open' to 'Resolved'
btasker added 'Done' to resolution
btasker changed status from 'Resolved' to 'Closed'
Repo: LocalChat
Host:Rimmer

commit 25001735c0acb47923437980ef9d1aa9267a63d0
Author: B Tasker <github@<Domain Hidden>>
Date: Sat May 12 16:41:33 2018 +0100

Commit Message: LOC-7 - Implemented ability to close a room

The room owner can now close the room with

/room close [roompass]

The pass is only required to prevent additional triggering and isn't used for any form of validation.

client/LocalChatClient.py | 32 ++++++++++++++++++++++++++++++
server/LocalChat.py | 47 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 79 insertions(+), 0 deletions(-)


View Commit | View Changes