Merge pull request 'Reset poll to "not started" and keep prepared Q&A questions' (#75) from feature/reset-not-started into main
Reviewed-on: #75
This commit was merged in pull request #75.
This commit is contained in:
commit
3c66597696
7 files changed
+119
-22
No files matched your search
@@ -109,6 +109,18 @@ class Poll extends Entity
|
||||
$this->embed_seen_at = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Back to "not started": neither live nor paused. Idempotent.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function notStarted(): void
|
||||
{
|
||||
$this->current_slide_id = null;
|
||||
$this->paused_slide_id = null;
|
||||
$this->embed_seen_at = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* A slide leaves the presentation (deleted or hidden). If it was live or is the one a pause
|
||||
* resumes, the poll pauses and resumes with $resumeSlideId instead (null: no slides left =
|
||||
|
||||
Reference in new issue
Block a user