Files
mattermost-mobile/types/api/threads.d.ts
Anurag Shivarathri ba976dadc2 [Gekidou[ [MM-43969, MM-44037] global threads crash, mark as read (#6253)
* Preparing thread data as well with prepareDeletePost

* observing the post directly to prevent the crash until the data issue is found

* mark as read, delete threeds fix

* Update thread.ts

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-10 15:59:06 +05:30

28 lines
610 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;
delete_at: number;
};
type ThreadParticipant = {
id: $ID<User>;
thread_id: $ID<Thread>;
};
type GetUserThreadsResponse = {
threads: Thread[];
total: number;
total_unread_mentions: number;
total_unread_threads: number;
};