* Push notifications entry point * Process android notification natively only if RN is not initialized * Database changes to store local channel viewed_at * EphemeralStore wait until screen removed * Move schedule session notification to utility * Fix channel remote & local actions + added actions for markChannelAsViewed & fetchMyChannel * Add fetchMyTeam remote action * Add dismissAllModalsAndPopToScreen to navigation * Improve post list component & add app state to re-trigger queries * Improve WS implementation * Handle push notification events * Fix postsInChannel since handler * Handle in-app notifications * Post list to listen to column changes * Track selected bottom tab in ephemeral store * add useIsTablet hook * in-app notifications on tablets
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {Model} from '@nozbe/watermelondb';
|
|
import {field} from '@nozbe/watermelondb/decorators';
|
|
|
|
import {MM_TABLES} from '@constants/database';
|
|
|
|
const {SERVERS} = MM_TABLES.APP;
|
|
|
|
/**
|
|
* The Server model will help us to identify the various servers a user will log in; in the context of
|
|
* multi-server support system. The db_path field will hold the App-Groups file-path
|
|
*/
|
|
export default class ServersModel extends Model {
|
|
/** table (name) : servers */
|
|
static table = SERVERS;
|
|
|
|
/** db_path : The file path where the database is stored */
|
|
@field('db_path') dbPath!: string;
|
|
|
|
/** display_name : The server display name */
|
|
@field('display_name') displayName!: string;
|
|
|
|
/** url : The online address for the Mattermost server */
|
|
@field('url') url!: string;
|
|
|
|
/** last_active_at: The last time this server was active */
|
|
@field('last_active_at') lastActiveAt!: number;
|
|
|
|
/** identifier: Determines the installation identifier of a server */
|
|
@field('identifier') identifier!: string;
|
|
}
|