Fix handling of end call for all with external signaling

When the message applies to all participants the property is all in
lower case. The comparison is case sensitive, so the message was ignored
and the call was not left by the Talk Android app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2024-10-23 12:59:56 +02:00 committed by backportbot[bot]
parent f14e849ea5
commit 4573d4be76
2 changed files with 7 additions and 7 deletions

View file

@ -373,7 +373,7 @@ public abstract class SignalingMessageReceiver {
long inCall;
try {
inCall = Long.parseLong(updateMap.get("inCall").toString());
inCall = Long.parseLong(updateMap.get("incall").toString());
} catch (RuntimeException e) {
// Broken message, this should not happen.
return;

View file

@ -322,7 +322,7 @@ public class SignalingMessageReceiverParticipantListTest {
Map<String, Object> updateMap = new HashMap<>();
updateMap.put("roomId", 108);
updateMap.put("all", true);
updateMap.put("inCall", 0);
updateMap.put("incall", 0);
eventMap.put("update", updateMap);
signalingMessageReceiver.processEvent(eventMap);
@ -343,7 +343,7 @@ public class SignalingMessageReceiverParticipantListTest {
HashMap<String, Object> updateMap = new HashMap<>();
updateMap.put("roomId", 108);
updateMap.put("all", true);
updateMap.put("inCall", 0);
updateMap.put("incall", 0);
eventMap.put("update", updateMap);
signalingMessageReceiver.processEvent(eventMap);
@ -370,7 +370,7 @@ public class SignalingMessageReceiverParticipantListTest {
HashMap<String, Object> updateMap = new HashMap<>();
updateMap.put("roomId", 108);
updateMap.put("all", true);
updateMap.put("inCall", 0);
updateMap.put("incall", 0);
eventMap.put("update", updateMap);
signalingMessageReceiver.processEvent(eventMap);
@ -393,7 +393,7 @@ public class SignalingMessageReceiverParticipantListTest {
HashMap<String, Object> updateMap = new HashMap<>();
updateMap.put("roomId", 108);
updateMap.put("all", true);
updateMap.put("inCall", 0);
updateMap.put("incall", 0);
eventMap.put("update", updateMap);
signalingMessageReceiver.processEvent(eventMap);
@ -420,7 +420,7 @@ public class SignalingMessageReceiverParticipantListTest {
HashMap<String, Object> updateMap = new HashMap<>();
updateMap.put("roomId", 108);
updateMap.put("all", true);
updateMap.put("inCall", 0);
updateMap.put("incall", 0);
eventMap.put("update", updateMap);
signalingMessageReceiver.processEvent(eventMap);
@ -449,7 +449,7 @@ public class SignalingMessageReceiverParticipantListTest {
HashMap<String, Object> updateMap = new HashMap<>();
updateMap.put("roomId", 108);
updateMap.put("all", true);
updateMap.put("inCall", 0);
updateMap.put("incall", 0);
eventMap.put("update", updateMap);
signalingMessageReceiver.processEvent(eventMap);