mattermost-mobile/app/components/post_draft/draft_input/index.ts
Mattermost Build efbaa26a11
Unlicensed server should not show the tooltip on channel send button (#8806) (#8817)
* Unlicensed server should not show the tooltip on channel send button

* Added config and license check for fetching and displaying scheduled post

(cherry picked from commit 098c219932)

Co-authored-by: Rajat Dabade <rajatdabade1997@gmail.com>
2025-04-29 16:49:20 +03:00

19 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));