Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
850c58c6
Commit
850c58c6
authored
Aug 15, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename method.
parent
0ead1f32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
MethodCallHelper.java
...c/main/java/chat/rocket/android/api/MethodCallHelper.java
+1
-1
RealmSpotlight.kt
...hat/rocket/persistence/realm/models/ddp/RealmSpotlight.kt
+1
-1
No files found.
app/src/main/java/chat/rocket/android/api/MethodCallHelper.java
View file @
850c58c6
...
...
@@ -490,7 +490,7 @@ public class MethodCallHelper {
JSONArray
userJsonArray
=
(
JSONArray
)
result
.
get
(
"users"
);
int
usersTotal
=
userJsonArray
.
length
();
for
(
int
i
=
0
;
i
<
usersTotal
;
++
i
)
{
RealmSpotlight
.
Companion
.
customizeUserJ
son
Object
(
userJsonArray
.
getJSONObject
(
i
));
RealmSpotlight
.
Companion
.
customizeUserJ
SON
Object
(
userJsonArray
.
getJSONObject
(
i
));
}
if
(
jsonString
==
null
)
{
...
...
persistence-realm/src/main/java/chat/rocket/persistence/realm/models/ddp/RealmSpotlight.kt
View file @
850c58c6
...
...
@@ -20,7 +20,7 @@ open class RealmSpotlight : RealmObject() {
}
companion
object
{
fun
customizeUserJ
son
Object
(
userJsonObject
:
JSONObject
)
{
fun
customizeUserJ
SON
Object
(
userJsonObject
:
JSONObject
)
{
userJsonObject
.
put
(
Columns
.
NAME
,
userJsonObject
.
get
(
"username"
))
userJsonObject
.
put
(
Columns
.
TYPE
,
"d"
)
userJsonObject
.
remove
(
"username"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment