mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 04:29:45 +01:00
Extract method to process "update" events
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
7f8909567c
commit
6a799387c8
@ -232,10 +232,18 @@ public abstract class SignalingMessageReceiver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void processEvent(Map<String, Object> eventMap) {
|
protected void processEvent(Map<String, Object> eventMap) {
|
||||||
if (!"update".equals(eventMap.get("type")) || !"participants".equals(eventMap.get("target"))) {
|
if (!"participants".equals(eventMap.get("target"))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ("update".equals(eventMap.get("type"))) {
|
||||||
|
processUpdateEvent(eventMap);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void processUpdateEvent(Map<String, Object> eventMap) {
|
||||||
Map<String, Object> updateMap;
|
Map<String, Object> updateMap;
|
||||||
try {
|
try {
|
||||||
updateMap = (Map<String, Object>) eventMap.get("update");
|
updateMap = (Map<String, Object>) eventMap.get("update");
|
||||||
|
Loading…
Reference in New Issue
Block a user