Files
mattermost-mobile/types/api/threads.d.ts
Anurag Shivarathri 102789bbd9 [Gekidou MM-40089 MM-39318] CRT New Messages Line (#6489)
* New Messages Line + More Messages

* Misc

* Update app/actions/local/thread.ts

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
2022-07-22 17:28:14 +05:30

36 lines
746 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 ThreadWithLastFetchedAt = Thread & {
lastFetchedAt: number;
}
type ThreadWithViewedAt = Thread & {
viewed_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;
};