forked from Ivasoft/mattermost-mobile
[Gekidou MM-39707] CRT DB (#5948)
* Database init * Naming fix * naming misc * Fix test * Added Thread Tab columns, Team Threads Count table and other changes * Test case fix * Test cases fix ...... AGAIN * TS fix * Removed loaded_in_all_threads_tab, loaded_in_unreads_tab * Removed TeamThreadsCount table, mention & message root counts & added loadedInGlobalThreads flag * Type changes, added delete thread with post * Removed unused type * Reverted relationshio of post with thread * Calling thread destroyPermanently from post * Removed unused table name variables * added THREAD constant table in post model and fixed a few comments * Misc typo fix and code clean up * Added test case and related to participant in user model * test cases fix Co-authored-by: Mattermod <mattermod@users.noreply.github.com> Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e93c570562
commit
9dbdae22fd
2
types/api/config.d.ts
vendored
2
types/api/config.d.ts
vendored
@@ -22,6 +22,7 @@ interface ClientConfig {
|
||||
BuildHashEnterprise: string;
|
||||
BuildNumber: string;
|
||||
CloseUnusedDirectMessages: string;
|
||||
CollapsedThreads: string;
|
||||
CustomBrandText: string;
|
||||
CustomDescriptionText: string;
|
||||
CustomTermsOfServiceId: string;
|
||||
@@ -115,6 +116,7 @@ interface ClientConfig {
|
||||
ExperimentalViewArchivedChannels: string;
|
||||
ExtendSessionLengthWithActivity: string;
|
||||
FeatureFlagAppsEnabled?: string;
|
||||
FeatureFlagCollapsedThreads?: string;
|
||||
GfycatApiKey: string;
|
||||
GfycatApiSecret: string;
|
||||
GoogleDeveloperKey: string;
|
||||
|
||||
2
types/api/posts.d.ts
vendored
2
types/api/posts.d.ts
vendored
@@ -47,6 +47,7 @@ type Post = {
|
||||
update_at: number;
|
||||
edit_at: number;
|
||||
delete_at: number;
|
||||
is_following?: boolean;
|
||||
is_pinned: boolean;
|
||||
user_id: string;
|
||||
channel_id: string;
|
||||
@@ -54,6 +55,7 @@ type Post = {
|
||||
original_id: string;
|
||||
message: string;
|
||||
type: PostType;
|
||||
participants?: null | UserProfile[];
|
||||
props: Record<string, any>;
|
||||
hashtags: string;
|
||||
pending_post_id: string;
|
||||
|
||||
20
types/api/threads.d.ts
vendored
Normal file
20
types/api/threads.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
type Thread = {
|
||||
id: string;
|
||||
reply_count: number;
|
||||
last_reply_at: number;
|
||||
last_viewed_at: number;
|
||||
participants: UserProfile[];
|
||||
post: Post;
|
||||
is_following?: boolean;
|
||||
unread_replies: number;
|
||||
unread_mentions: number;
|
||||
loaded_in_global_threads: boolean;
|
||||
};
|
||||
|
||||
type ThreadParticipant = {
|
||||
id: $ID<User>;
|
||||
thread_id: $ID<Thread>;
|
||||
};
|
||||
Reference in New Issue
Block a user