forked from Ivasoft/mattermost-mobile
* [Gekidou HOTFIX] fixes saving threads in the DB `loadedInGlobalThreads` cannot be a property of the thread, the DB will fail with unknown column upon saving. This commit makes it an argument of handleThreads and handleThreadInTeam. Fixes wrong foreignKey in THREAD table associations. * Fixes errors * Fixes error
27 lines
587 B
TypeScript
27 lines
587 B
TypeScript
// 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;
|
|
};
|
|
|
|
type ThreadParticipant = {
|
|
id: $ID<User>;
|
|
thread_id: $ID<Thread>;
|
|
};
|
|
|
|
type GetUserThreadsResponse = {
|
|
threads: Thread[];
|
|
total: number;
|
|
total_unread_mentions: number;
|
|
total_unread_threads: number;
|
|
};
|