mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-27 05:48:25 +00:00
* Initial skeleton * Cleanup and fix errors * Minor refactoring and add config * Fix lint * Add selection logic to post body * Fix naming
20 lines
631 B
TypeScript
20 lines
631 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {withDatabase} from '@nozbe/watermelondb/DatabaseProvider';
|
|
import withObservables from '@nozbe/with-observables';
|
|
|
|
import {observeVoiceMessagesEnabled} from '@queries/servers/system';
|
|
|
|
import DraftInput from './draft_input';
|
|
|
|
import type {WithDatabaseArgs} from '@typings/database/database';
|
|
|
|
const enhanced = withObservables([], ({database}: WithDatabaseArgs) => {
|
|
return {
|
|
voiceMessageEnabled: observeVoiceMessagesEnabled(database),
|
|
};
|
|
});
|
|
|
|
export default withDatabase(enhanced(DraftInput));
|