[call-me] - fix: show correct username (callee) in busy call toast instead of caller's own name
This commit is contained in:
Generated
+2
-2
@@ -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
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user