forked from Ivasoft/mattermost-mobile
* Init * Test fix * New sync implementation * misc * Includes migration and other servers sync * Misc * Migration fix * Migration is done version 7 * Update app/queries/servers/thread.ts Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update app/database/operator/server_data_operator/handlers/team_threads_sync.ts Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Feedback changes * Fixes when old thread gets a reply * Fix Co-authored-by: Mattermod <mattermod@users.noreply.github.com> Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
58 lines
2.4 KiB
TypeScript
58 lines
2.4 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import ServerDataOperatorBase from '@database/operator/server_data_operator/handlers';
|
|
import CategoryHandler, {CategoryHandlerMix} from '@database/operator/server_data_operator/handlers/category';
|
|
import ChannelHandler, {ChannelHandlerMix} from '@database/operator/server_data_operator/handlers/channel';
|
|
import GroupHandler, {GroupHandlerMix} from '@database/operator/server_data_operator/handlers/group';
|
|
import PostHandler, {PostHandlerMix} from '@database/operator/server_data_operator/handlers/post';
|
|
import PostsInChannelHandler, {PostsInChannelHandlerMix} from '@database/operator/server_data_operator/handlers/posts_in_channel';
|
|
import PostsInThreadHandler, {PostsInThreadHandlerMix} from '@database/operator/server_data_operator/handlers/posts_in_thread';
|
|
import ReactionHander, {ReactionHandlerMix} from '@database/operator/server_data_operator/handlers/reaction';
|
|
import TeamHandler, {TeamHandlerMix} from '@database/operator/server_data_operator/handlers/team';
|
|
import TeamThreadsSyncHandler, {TeamThreadsSyncHandlerMix} from '@database/operator/server_data_operator/handlers/team_threads_sync';
|
|
import ThreadHandler, {ThreadHandlerMix} from '@database/operator/server_data_operator/handlers/thread';
|
|
import ThreadInTeamHandler, {ThreadInTeamHandlerMix} from '@database/operator/server_data_operator/handlers/thread_in_team';
|
|
import UserHandler, {UserHandlerMix} from '@database/operator/server_data_operator/handlers/user';
|
|
import mix from '@utils/mix';
|
|
|
|
import type {Database} from '@nozbe/watermelondb';
|
|
|
|
interface ServerDataOperator extends
|
|
CategoryHandlerMix,
|
|
ChannelHandlerMix,
|
|
GroupHandlerMix,
|
|
PostHandlerMix,
|
|
PostsInChannelHandlerMix,
|
|
PostsInThreadHandlerMix,
|
|
ReactionHandlerMix,
|
|
ServerDataOperatorBase,
|
|
TeamHandlerMix,
|
|
ThreadHandlerMix,
|
|
ThreadInTeamHandlerMix,
|
|
TeamThreadsSyncHandlerMix,
|
|
UserHandlerMix
|
|
{}
|
|
|
|
class ServerDataOperator extends mix(ServerDataOperatorBase).with(
|
|
CategoryHandler,
|
|
ChannelHandler,
|
|
GroupHandler,
|
|
PostHandler,
|
|
PostsInChannelHandler,
|
|
PostsInThreadHandler,
|
|
ReactionHander,
|
|
TeamHandler,
|
|
ThreadHandler,
|
|
ThreadInTeamHandler,
|
|
TeamThreadsSyncHandler,
|
|
UserHandler,
|
|
) {
|
|
// eslint-disable-next-line no-useless-constructor
|
|
constructor(database: Database) {
|
|
super(database);
|
|
}
|
|
}
|
|
|
|
export default ServerDataOperator;
|