[call-me] - fix notfound

This commit is contained in:
Miroslav Pejic
2024-09-15 10:31:01 +02:00
parent 894d44ee54
commit d3bcfb2b03
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -146,7 +146,7 @@ function handleConnection(socket) {
function handleMessage(data) {
const { type } = data;
console.log('Received message:', type);
console.log('Received message', type);
switch (type) {
case 'signIn':
@@ -212,7 +212,7 @@ function handleConnection(socket) {
sendMsgTo(recipientSocket, data);
} else {
console.warn(`Recipient (${toName}) not found`);
sendError(socket, `User ${toName} not found`);
sendMsgTo(socket, { type: 'notfound', username: toName });
}
break;
case 'offerDecline':
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "callme",
"version": "1.0.6",
"version": "1.0.7",
"description": "Your Go-To for Instant Video Calls",
"author": "Miroslav Pejic - miroslav.pejic.85@gmail.com",
"license": "AGPLv3",