forked from Ivasoft/mattermost-mobile
* WS Events, Actions, Queries, Thread Follow, Post Query * i18n changes * Misc * Only unread threads are marked as read * Mark threads from WS even as visible in Global threads * Merge fixes * Update thread_post_list.tsx * Merge fix * Feedback fix * Make teamId in handleThreads optional for unfollowed threads * Removed unwated type and return * Review changes * Removing unused model * Merge fix * Misc fixes * Following button query change
28 lines
626 B
TypeScript
28 lines
626 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;
|
|
loaded_in_global_threads: boolean;
|
|
};
|
|
|
|
type ThreadParticipant = {
|
|
id: $ID<User>;
|
|
thread_id: $ID<Thread>;
|
|
};
|
|
|
|
type GetUserThreadsResponse = {
|
|
threads: Thread[];
|
|
total: number;
|
|
total_unread_mentions: number;
|
|
total_unread_threads: number;
|
|
};
|