[call-me] - fix: show correct username (callee) in busy call toast instead of caller's own name

This commit is contained in:
Miroslav Pejic
2026-04-19 15:03:03 +02:00
parent 24c873edb4
commit 0b5c653489
3 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "call-me",
"version": "1.3.39",
"version": "1.3.40",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "call-me",
"version": "1.3.39",
"version": "1.3.40",
"license": "AGPLv3",
"dependencies": {
"@ngrok/ngrok": "1.7.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "call-me",
"version": "1.3.39",
"version": "1.3.40",
"description": "Your Go-To for Instant Video Calls",
"author": "Miroslav Pejic - miroslav.pejic.85@gmail.com",
"license": "AGPLv3",
+6 -2
View File
@@ -1688,8 +1688,12 @@ async function offerCreate() {
function offerAccept(data) {
// I'm already in call decline the new one!
if (remoteVideo.srcObject) {
data.type = 'offerBusy';
sendMsg({ ...data });
// Send busy response directly to avoid sendMsg overriding name with connectedUser
socket.emit('message', {
type: 'offerBusy',
from: data.from, // Original caller (for server routing)
name: userName, // This user (the busy one)
});
return;
}