mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
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:
parent
417535da63
commit
0705451921
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user