1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-08 15:06:08 +02:00
This commit is contained in:
Scott Bishel 2022-05-09 16:34:47 -06:00
parent 68570ace5c
commit 28832926e9
2 changed files with 6 additions and 3 deletions

View File

@ -19,7 +19,7 @@ import CompassIcon from '../../widgets/icons/compassIcon'
import TelemetryClient, {TelemetryCategory, TelemetryActions} from '../../telemetry/telemetryClient'
import './cloudMessage.scss'
const signupURL = 'http://mattermost.com/pricing'
const signupURL = 'https://mattermost.com/pricing'
const displayAfter = (1000 * 60 * 60 * 24) //24 hours
const CloudMessage = React.memo(() => {
@ -48,9 +48,13 @@ const CloudMessage = React.memo(() => {
}
}
if (Utils.isFocalboardPlugin() || cloudMessageCanceled) {
return null
}
if (me) {
const installTime = Date.now() - me.create_at
if (Utils.isFocalboardPlugin() || cloudMessageCanceled || installTime < displayAfter) {
if (installTime < displayAfter) {
return null
}
}

View File

@ -60,7 +60,6 @@ const BoardPage = (props: Props): JSX.Element => {
if (!me) {
return
}
dispatch(fetchUserBlockSubscriptions(me!.id))
}, [me?.id])
}