mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-19 18:55:05 +01:00
Merge pull request #4371 from nextcloud/fix-handling-of-end-call-for-all-with-external-signaling
Fix handling of end call for everyone with external signaling
This commit is contained in:
commit
b42824a5a1
@ -370,10 +370,13 @@ public abstract class SignalingMessageReceiver {
|
|||||||
// },
|
// },
|
||||||
// },
|
// },
|
||||||
// }
|
// }
|
||||||
|
//
|
||||||
|
// Note that "incall" in participants->update is all in lower case when the message applies to all participants,
|
||||||
|
// even if it is "inCall" when the message provides separate properties for each participant.
|
||||||
|
|
||||||
long inCall;
|
long inCall;
|
||||||
try {
|
try {
|
||||||
inCall = Long.parseLong(updateMap.get("inCall").toString());
|
inCall = Long.parseLong(updateMap.get("incall").toString());
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
// Broken message, this should not happen.
|
// Broken message, this should not happen.
|
||||||
return;
|
return;
|
||||||
|
@ -322,7 +322,7 @@ public class SignalingMessageReceiverParticipantListTest {
|
|||||||
Map<String, Object> updateMap = new HashMap<>();
|
Map<String, Object> updateMap = new HashMap<>();
|
||||||
updateMap.put("roomId", 108);
|
updateMap.put("roomId", 108);
|
||||||
updateMap.put("all", true);
|
updateMap.put("all", true);
|
||||||
updateMap.put("inCall", 0);
|
updateMap.put("incall", 0);
|
||||||
eventMap.put("update", updateMap);
|
eventMap.put("update", updateMap);
|
||||||
signalingMessageReceiver.processEvent(eventMap);
|
signalingMessageReceiver.processEvent(eventMap);
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ public class SignalingMessageReceiverParticipantListTest {
|
|||||||
HashMap<String, Object> updateMap = new HashMap<>();
|
HashMap<String, Object> updateMap = new HashMap<>();
|
||||||
updateMap.put("roomId", 108);
|
updateMap.put("roomId", 108);
|
||||||
updateMap.put("all", true);
|
updateMap.put("all", true);
|
||||||
updateMap.put("inCall", 0);
|
updateMap.put("incall", 0);
|
||||||
eventMap.put("update", updateMap);
|
eventMap.put("update", updateMap);
|
||||||
signalingMessageReceiver.processEvent(eventMap);
|
signalingMessageReceiver.processEvent(eventMap);
|
||||||
|
|
||||||
@ -370,7 +370,7 @@ public class SignalingMessageReceiverParticipantListTest {
|
|||||||
HashMap<String, Object> updateMap = new HashMap<>();
|
HashMap<String, Object> updateMap = new HashMap<>();
|
||||||
updateMap.put("roomId", 108);
|
updateMap.put("roomId", 108);
|
||||||
updateMap.put("all", true);
|
updateMap.put("all", true);
|
||||||
updateMap.put("inCall", 0);
|
updateMap.put("incall", 0);
|
||||||
eventMap.put("update", updateMap);
|
eventMap.put("update", updateMap);
|
||||||
signalingMessageReceiver.processEvent(eventMap);
|
signalingMessageReceiver.processEvent(eventMap);
|
||||||
|
|
||||||
@ -393,7 +393,7 @@ public class SignalingMessageReceiverParticipantListTest {
|
|||||||
HashMap<String, Object> updateMap = new HashMap<>();
|
HashMap<String, Object> updateMap = new HashMap<>();
|
||||||
updateMap.put("roomId", 108);
|
updateMap.put("roomId", 108);
|
||||||
updateMap.put("all", true);
|
updateMap.put("all", true);
|
||||||
updateMap.put("inCall", 0);
|
updateMap.put("incall", 0);
|
||||||
eventMap.put("update", updateMap);
|
eventMap.put("update", updateMap);
|
||||||
signalingMessageReceiver.processEvent(eventMap);
|
signalingMessageReceiver.processEvent(eventMap);
|
||||||
|
|
||||||
@ -420,7 +420,7 @@ public class SignalingMessageReceiverParticipantListTest {
|
|||||||
HashMap<String, Object> updateMap = new HashMap<>();
|
HashMap<String, Object> updateMap = new HashMap<>();
|
||||||
updateMap.put("roomId", 108);
|
updateMap.put("roomId", 108);
|
||||||
updateMap.put("all", true);
|
updateMap.put("all", true);
|
||||||
updateMap.put("inCall", 0);
|
updateMap.put("incall", 0);
|
||||||
eventMap.put("update", updateMap);
|
eventMap.put("update", updateMap);
|
||||||
signalingMessageReceiver.processEvent(eventMap);
|
signalingMessageReceiver.processEvent(eventMap);
|
||||||
|
|
||||||
@ -449,7 +449,7 @@ public class SignalingMessageReceiverParticipantListTest {
|
|||||||
HashMap<String, Object> updateMap = new HashMap<>();
|
HashMap<String, Object> updateMap = new HashMap<>();
|
||||||
updateMap.put("roomId", 108);
|
updateMap.put("roomId", 108);
|
||||||
updateMap.put("all", true);
|
updateMap.put("all", true);
|
||||||
updateMap.put("inCall", 0);
|
updateMap.put("incall", 0);
|
||||||
eventMap.put("update", updateMap);
|
eventMap.put("update", updateMap);
|
||||||
signalingMessageReceiver.processEvent(eventMap);
|
signalingMessageReceiver.processEvent(eventMap);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user