Avatar defaults and colors
This commit is contained in:
parent
a001882d58
commit
12d2b1bf7c
140 changed files with 4212 additions and 1084 deletions
|
@ -34,6 +34,7 @@ try {
|
|||
}
|
||||
|
||||
const PATH = 'attachments.noindex';
|
||||
const AVATAR_PATH = 'avatars.noindex';
|
||||
const STICKER_PATH = 'stickers.noindex';
|
||||
const TEMP_PATH = 'temp';
|
||||
const DRAFT_PATH = 'drafts.noindex';
|
||||
|
@ -87,6 +88,13 @@ export const getPath = (userDataPath: string): string => {
|
|||
return join(userDataPath, PATH);
|
||||
};
|
||||
|
||||
export const getAvatarsPath = (userDataPath: string): string => {
|
||||
if (!isString(userDataPath)) {
|
||||
throw new TypeError("'userDataPath' must be a string");
|
||||
}
|
||||
return join(userDataPath, AVATAR_PATH);
|
||||
};
|
||||
|
||||
export const getStickersPath = (userDataPath: string): string => {
|
||||
if (!isString(userDataPath)) {
|
||||
throw new TypeError("'userDataPath' must be a string");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue