mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-23 03:25:07 +03:00
Make WebRTC call a class
This commit is contained in:
@@ -139,4 +139,8 @@ export async function ensureKeysOnLogin(password: string, token: string): Promis
|
||||
export function restoreKeys() {
|
||||
currentPublicKey = ub64(localStorage.getItem("publicKey")!);
|
||||
currentPrivateKey = ub64(localStorage.getItem("privateKey")!);
|
||||
}
|
||||
|
||||
export function getAuthToken(): string | null {
|
||||
return localStorage.getItem("authToken");
|
||||
}
|
||||
@@ -25,7 +25,6 @@ export class CallSignalingHandler {
|
||||
handleWebSocketMessage(message: CallSignalingMessage) {
|
||||
const { data } = message;
|
||||
if (!data) {
|
||||
console.warn("Received call signaling message with no data:", message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
+781
-750
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user