Browse Source

Merge pull request #302 from o0lwj0o/patch-2

improve performance
Mario Đanić 6 years ago
parent
commit
66908a7742
1 changed files with 10 additions and 11 deletions
  1. 10 11
      app/src/main/java/com/nextcloud/talk/controllers/CallController.java

+ 10 - 11
app/src/main/java/com/nextcloud/talk/controllers/CallController.java

@@ -1561,16 +1561,15 @@ public class CallController extends BaseController {
 
 
         StringBuilder stringBuilder = new StringBuilder();
-        stringBuilder.append("{");
-        stringBuilder.append("\"fn\":\"");
-        stringBuilder.append(StringEscapeUtils.escapeJson(LoganSquare.serialize(ncMessageWrapper
-                .getSignalingMessage()))).append("\"");
-        stringBuilder.append(",");
-        stringBuilder.append("\"sessionId\":");
-        stringBuilder.append("\"").append(StringEscapeUtils.escapeJson(callSession)).append("\"");
-        stringBuilder.append(",");
-        stringBuilder.append("\"ev\":\"message\"");
-        stringBuilder.append("}");
+        stringBuilder.append("{")
+                     .append("\"fn\":\"")
+                     .append(StringEscapeUtils.escapeJson(LoganSquare.serialize(ncMessageWrapper.getSignalingMessage()))).append("\"")
+                     .append(",")
+                     .append("\"sessionId\":")
+                     .append("\"").append(StringEscapeUtils.escapeJson(callSession)).append("\"")
+                     .append(",")
+                     .append("\"ev\":\"message\"")
+                     .append("}");
 
         List<String> strings = new ArrayList<>();
         String stringToSend = stringBuilder.toString();
@@ -1778,4 +1777,4 @@ public class CallController extends BaseController {
             showCallControls();
         }
     }
-}
+}