A user may wish to pause their participation in sessions, e.g. during a meal break. It may be advantageous to be able to pause the user's contribution to a session then resume without breaking the session.
A command, e.g. /pause could be added which allows a user to temporarily remove themselves from sessions and a command, e.g./resume could restart their contribution. This would have different effect based on the user role:
A monitored user would pause the whole session, stopping notifications. Resume would restart notification and reset counters, similar to sending /okay.
A supervisor would effectively remove themselves from all sessions which would require sending messages to each session informing the supervisor had left (with consequential warnings if they were the last supervisor). This could be done by actually leaving the sessions and adding a field to store lists of paused sessions to allow resume to reconnect to those sessions.
This could be implemented by adding the following fields to the session dictionary:
state - paused | running
paused_supervisors - list of paused supervisor user ids
A user may wish to pause their participation in sessions, e.g. during a meal break. It may be advantageous to be able to pause the user's contribution to a session then resume without breaking the session.
A command, e.g.
/pause
could be added which allows a user to temporarily remove themselves from sessions and a command, e.g./resume
could restart their contribution. This would have different effect based on the user role:/okay
.This could be implemented by adding the following fields to the session dictionary: