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
b5144cae
Unverified
Commit
b5144cae
authored
Sep 04, 2018
by
Lucio Maciel
Committed by
GitHub
Sep 04, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1650 from RocketChat/fix/fix-multiserver
[FIX] fix multiserver
parents
3e0f1a48
37231ee5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
SharedPreferencesAccountsRepository.kt
...er/infraestructure/SharedPreferencesAccountsRepository.kt
+3
-3
No files found.
app/src/main/java/chat/rocket/android/server/infraestructure/SharedPreferencesAccountsRepository.kt
View file @
b5144cae
...
...
@@ -14,12 +14,12 @@ class SharedPreferencesAccountsRepository(
private
val
moshi
:
Moshi
)
:
AccountsRepository
{
override
fun
save
(
a
ccount
:
Account
)
{
override
fun
save
(
newA
ccount
:
Account
)
{
val
accounts
=
load
()
val
newList
=
accounts
.
filter
{
it
.
serverUrl
!=
i
t
.
serverUrl
}
val
newList
=
accounts
.
filter
{
account
->
newAccount
.
serverUrl
!=
accoun
t
.
serverUrl
}
.
toMutableList
()
newList
.
add
(
0
,
a
ccount
)
newList
.
add
(
0
,
newA
ccount
)
save
(
newList
)
}
...
...
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