openvidu-java-client: get customSessionId from json response

pull/121/head
pabloFuente 2018-09-20 18:20:29 +02:00
parent c917164657
commit e30b365f1d
1 changed files with 2 additions and 0 deletions

View File

@ -513,6 +513,8 @@ public class Session {
} }
if (this.properties != null && this.properties.customSessionId() != null) { if (this.properties != null && this.properties.customSessionId() != null) {
builder.customSessionId(this.properties.customSessionId()); builder.customSessionId(this.properties.customSessionId());
} else if (json.containsKey("customSessionId")) {
builder.customSessionId((String) json.get("customSessionId"));
} }
this.properties = builder.build(); this.properties = builder.build();
JSONArray jsonArrayConnections = (JSONArray) ((JSONObject) json.get("connections")).get("content"); JSONArray jsonArrayConnections = (JSONArray) ((JSONObject) json.get("connections")).get("content");