Renaming flagged to saved (#6021)

* Renaming flagged to saved

* post isSaved property
This commit is contained in:
Elias Nahum
2022-03-03 13:10:18 -03:00
committed by GitHub
parent 162bc6cc3f
commit e93c570562
6 changed files with 26 additions and 25 deletions

View File

@@ -17,7 +17,7 @@ export interface ClientPostsMix {
getPostsBefore: (channelId: string, postId: string, page?: number, perPage?: number) => Promise<PostResponse>;
getPostsAfter: (channelId: string, postId: string, page?: number, perPage?: number) => Promise<PostResponse>;
getFileInfosForPost: (postId: string) => Promise<FileInfo[]>;
getFlaggedPosts: (userId: string, channelId?: string, teamId?: string, page?: number, perPage?: number) => Promise<any>;
getSavedPosts: (userId: string, channelId?: string, teamId?: string, page?: number, perPage?: number) => Promise<any>;
getPinnedPosts: (channelId: string) => Promise<any>;
markPostAsUnread: (userId: string, postId: string) => Promise<any>;
pinPost: (postId: string) => Promise<any>;
@@ -125,7 +125,7 @@ const ClientPosts = (superclass: any) => class extends superclass {
);
};
getFlaggedPosts = async (userId: string, channelId = '', teamId = '', page = 0, perPage = PER_PAGE_DEFAULT) => {
getSavedPosts = async (userId: string, channelId = '', teamId = '', page = 0, perPage = PER_PAGE_DEFAULT) => {
this.analytics.trackAPI('api_posts_get_flagged', {team_id: teamId});
return this.doFetch(