riban-bw / lone_working

Telegram messenger bot lone working service
GNU General Public License v3.0
0 stars 0 forks source link

Feature request: Ability for supervisor to end user session #4

Open riban-bw opened 4 months ago

riban-bw commented 4 months ago

It may be advantageous for a supervisor to be able to end user session, e.g. if user has forgotten and superviosr is receiving noticiations.

We could add a command, e.g. /end_xxxxxx that would end session xxxxxx. There could be a command, e.g. list_sessions that showed the sessions that a user is involved in with the /end_xxxxx link for each. I wonder how this might interact with #3. Some of the functionality is similar. Also should this be limited to own sessions or all sessions.

If the command was only valid from a supervisor of a session then it would reduce the risk of other users (possibly bad actors) changing state of a session.