feat: refactor friends requests

This commit is contained in:
Zamitto
2024-07-10 19:52:57 -03:00
parent b3f87d5662
commit ef0699dbea
11 changed files with 74 additions and 34 deletions

View File

@@ -14,7 +14,8 @@ import type {
RealDebridUser,
DownloadSource,
UserProfile,
PendingFriendRequest,
FriendRequest,
FriendRequestAction,
} from "@types";
import type { DiskSpace } from "check-disk-space";
@@ -133,7 +134,11 @@ declare global {
displayName: string,
newProfileImagePath: string | null
) => Promise<UserProfile>;
getFriendRequests: () => Promise<PendingFriendRequest[] | null>;
getFriendRequests: () => Promise<FriendRequest[] | null>;
updateFriendRequest: (
userId: string,
action: FriendRequestAction
) => Promise<void>;
}
interface Window {