mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 14:05:40 +03: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
f14e849ea5
commit
4573d4be76
2 changed files with 7 additions and 7 deletions
|
@ -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 a new issue