mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 08:55:54 +03: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
1 changed files with 9 additions and 1 deletions
|
@ -232,10 +232,18 @@ public abstract class SignalingMessageReceiver {
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
if ("update".equals(eventMap.get("type"))) {
|
||||
processUpdateEvent(eventMap);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private void processUpdateEvent(Map<String, Object> eventMap) {
|
||||
Map<String, Object> updateMap;
|
||||
try {
|
||||
updateMap = (Map<String, Object>) eventMap.get("update");
|
||||
|
|
Loading…
Reference in a new issue