cherry-pick conflicts

This commit is contained in:
Reinaldo Neto 2022-03-10 09:37:54 -03:00 committed by AlexAlexandre
parent a8b5ee718f
commit 2313f58a88
2 changed files with 10 additions and 3 deletions

View File

@ -43,4 +43,13 @@ export type UsersEndpoints = {
user: IUser;
};
};
'users.resetAvatar': {
POST: (params: { userId: string }) => {};
};
'users.getPreferences': {
GET: (params: { userId: IUser['_id'] }) => {
preferences: INotificationPreferences;
success: boolean;
};
};
};

View File

@ -572,10 +572,8 @@ export const getAvatarSuggestion = (): Promise<IAvatarSuggestion> =>
// RC 0.51.0
sdk.methodCallWrapper('getAvatarSuggestion');
export const resetAvatar = (userId: string): any =>
export const resetAvatar = (userId: string) =>
// RC 0.55.0
// TODO: missing definitions from server
// @ts-ignore
sdk.post('users.resetAvatar', { userId });
export const setAvatarFromService = ({