mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-05 02:18:56 +00:00
* Unlicensed server should not show the tooltip on channel send button * Added config and license check for fetching and displaying scheduled post
20 lines
626 B
TypeScript
20 lines
626 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {withDatabase, withObservables} from '@nozbe/watermelondb/react';
|
|
|
|
import {observeScheduledPostEnabled} from '@queries/servers/scheduled_post';
|
|
|
|
import DraftInput from './draft_input';
|
|
|
|
import type {WithDatabaseArgs} from '@typings/database/database';
|
|
|
|
const enhanced = withObservables([], ({database}: WithDatabaseArgs) => {
|
|
const scheduledPostsEnabled = observeScheduledPostEnabled(database);
|
|
return {
|
|
scheduledPostsEnabled,
|
|
};
|
|
});
|
|
|
|
export default withDatabase(enhanced(DraftInput));
|