Add meetings panel to the rooms page, add checkbox for marking for autojoin
This commit is contained in:
1 parent
e9ad57524e
commit
f5f389f5d3
6 files changed
+101
-7
No files matched your search
@@ -13,6 +13,9 @@ type createMeetingRequest struct {
|
||||
Intent string `json:"intent"`
|
||||
Room string `json:"room"`
|
||||
ScheduledAt string `json:"scheduledAt"`
|
||||
// AutoJoin asks the server to record the author's own "join" vote so the
|
||||
// meeting carries their intent to attend from the moment it is created.
|
||||
AutoJoin bool `json:"autoJoin"`
|
||||
}
|
||||
|
||||
type voteMeetingRequest struct {
|
||||
@@ -68,7 +71,7 @@ func (h *Handler) createMeeting(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
created, err := h.meetings.Create(r.Context(), u, req.Title, req.Intent, req.Room, scheduledAt)
|
||||
created, err := h.meetings.Create(r.Context(), u, req.Title, req.Intent, req.Room, scheduledAt, req.AutoJoin)
|
||||
if err != nil {
|
||||
h.fail(w, err)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user