forked from Ivasoft/mattermost-mobile
* 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>
28 lines
610 B
TypeScript
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;
|
|
};
|