Shared: Utils: Common: Added showProgress for operations progress
This commit is contained in:
parent
a943f0df38
commit
a453b1e8b4
@ -272,10 +272,15 @@ export function showLoader() {
|
||||
if (isMobile) return;
|
||||
|
||||
hideLoader();
|
||||
|
||||
timer = setTimeout(() => TopLoaderService.start(), 500);
|
||||
}
|
||||
|
||||
export function showProgress() {
|
||||
if (isMobile) return;
|
||||
TopLoaderService.cancel();
|
||||
TopLoaderService.start();
|
||||
}
|
||||
|
||||
export function isMe(user: TUser, userName: string) {
|
||||
return (
|
||||
user && user.id && (userName === "@self" || user.userName === userName)
|
||||
|
Loading…
Reference in New Issue
Block a user