forked from Ivasoft/mattermost-mobile
* User avatar stack * In-Channel experience * Misc Fixes * Fixed fetchPostThread & added observer * Reusing the user component * Refactor fix * Moved some post options to common post options * Combined follow/unfollow functions * Feedback fixes * Feedback fixes * teamId fix * Fixed teamId again Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
19 lines
567 B
TypeScript
19 lines
567 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import withObservables from '@nozbe/with-observables';
|
|
|
|
import {observeTeamIdByThread} from '@queries/servers/thread';
|
|
|
|
import FollowThreadOption from './follow_thread_option';
|
|
|
|
import type ThreadModel from '@typings/database/models/servers/thread';
|
|
|
|
const enhanced = withObservables(['thread'], ({thread}: { thread: ThreadModel }) => {
|
|
return {
|
|
teamId: observeTeamIdByThread(thread),
|
|
};
|
|
});
|
|
|
|
export default enhanced(FollowThreadOption);
|