- Implemented a modal for sending and managing friend requests, allowing users to send, accept, decline, or ignore requests. - Enhanced user status management by integrating real-time updates for online, busy, offline, and away statuses. - Updated the API and database schema to support new friend request and user status features. - Improved socket management for better connection handling and user experience. - Refactored UI components to accommodate new functionalities while maintaining consistency.
33 lines
725 B
TypeScript
33 lines
725 B
TypeScript
declare global {
|
|
namespace SiPher {
|
|
|
|
interface AppSidebarProps {
|
|
children: React.ReactNode;
|
|
socketStatus: SocketStatus;
|
|
socketInfo: SocketInfo;
|
|
currentChannel?: SiPher.Channel;
|
|
disconnectSocket: () => void;
|
|
connectSocket: () => void;
|
|
}
|
|
|
|
interface SidebarItem {
|
|
id: string;
|
|
icon: React.ReactNode;
|
|
label: string;
|
|
}
|
|
|
|
type OlmStatus = "checking" | "synced" | "mismatched" | "not_setup" | "creating";
|
|
type SocketStatus = "connecting" | "connected" | "error" | "disconnected";
|
|
|
|
interface SocketInfo {
|
|
ping: number | null;
|
|
transport: string | null;
|
|
connectedAt: number | null;
|
|
socketId: string | null;
|
|
serverUrl: string | null;
|
|
error: string | null;
|
|
}
|
|
}
|
|
}
|
|
export { };
|
|
|