Reduce grace period, add setting for telegram notifications
This commit is contained in:
1 parent
d4257e7dab
commit
f6c68aa7d5
5 files changed
+63
-15
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import React, { useState } from 'react'
|
||||
import { api } from '../api.js'
|
||||
import { notifyTelegramEnabled } from '../settings.js'
|
||||
|
||||
// Formats a Date as the value a `datetime-local` input expects, in local time
|
||||
// (YYYY-MM-DDTHH:mm).
|
||||
@@ -20,9 +21,9 @@ export default function PlanMeetingPage({ onCreated, onCancel }) {
|
||||
// When checked the author is recorded as joining straight away. Checked by
|
||||
// default, since planning a meeting usually means you intend to attend.
|
||||
const [autoJoin, setAutoJoin] = useState(true)
|
||||
// When checked the Telegram bot announces the meeting. Checked by default;
|
||||
// users uncheck it to create a meeting silently.
|
||||
const [hasNotification, setHasNotification] = useState(true)
|
||||
// When checked the Telegram bot announces the meeting. Off by default; the
|
||||
// profile's device-local preference decides whether it starts checked.
|
||||
const [hasNotification, setHasNotification] = useState(notifyTelegramEnabled)
|
||||
const [saving, setSaving] = useState(false)
|
||||
const [error, setError] = useState('')
|
||||
|
||||
|
||||
Reference in new issue
Block a user