Unverified Commit 4df382a0 authored by Lucio Maciel's avatar Lucio Maciel Committed by GitHub

Merge pull request #1635 from RocketChat/fix/create-channel-fragment

[FIX] Create channel fragment
parents 8c7da0f8 dc173387
...@@ -34,8 +34,8 @@ class FileUiModel( ...@@ -34,8 +34,8 @@ class FileUiModel(
} }
private fun getUserDisplayName(): String { private fun getUserDisplayName(): String {
val username = "@${genericAttachment.user?.username}" val username = "@${genericAttachment.user.username}"
val realName = genericAttachment.user?.name val realName = genericAttachment.user.name
val uploaderName = if (settings.useRealName()) realName else username val uploaderName = if (settings.useRealName()) realName else username
return uploaderName ?: username return uploaderName ?: username
} }
......
...@@ -14,12 +14,12 @@ class SharedPreferencesAccountsRepository( ...@@ -14,12 +14,12 @@ class SharedPreferencesAccountsRepository(
private val moshi: Moshi private val moshi: Moshi
) : AccountsRepository { ) : AccountsRepository {
override fun save(newAccount: Account) { override fun save(account: Account) {
val accounts = load() val accounts = load()
val newList = accounts.filter { account -> newAccount.serverUrl != account.serverUrl } val newList = accounts.filter { it.serverUrl != it.serverUrl }
.toMutableList() .toMutableList()
newList.add(0, newAccount) newList.add(0, account)
save(newList) save(newList)
} }
......
...@@ -27,7 +27,7 @@ class PasswordPresenter @Inject constructor( ...@@ -27,7 +27,7 @@ class PasswordPresenter @Inject constructor(
val me = retryIO("me") { client.me() } val me = retryIO("me") { client.me() }
retryIO("updateProfile(${me.id})") { retryIO("updateProfile(${me.id})") {
client.updateProfile(me.id!!, null, null, password, null) client.updateProfile(me.id, null, null, password, null)
} }
view.showPasswordSuccessfullyUpdatedMessage() view.showPasswordSuccessfullyUpdatedMessage()
......
...@@ -44,8 +44,9 @@ ...@@ -44,8 +44,9 @@
<!-- Settings List --> <!-- Settings List -->
<string-array name="settings_actions"> <string-array name="settings_actions">
<item name="item_password">パスワードの変更</item> <item name="item_preferences">Preferences</item> <!-- TODO Add translation -->
<item name="item_password">このアプリケーションについて</item> <item name="item_password">Change Password</item> <!-- TODO Add translation -->
<item name="item_password">About</item> <!-- TODO Add translation -->
</string-array> </string-array>
<!-- Regular information messages --> <!-- Regular information messages -->
......
...@@ -25,7 +25,7 @@ ext { ...@@ -25,7 +25,7 @@ ext {
playServices : '16.0.0', playServices : '16.0.0',
exoPlayer : '2.8.2', exoPlayer : '2.8.2',
flexbox : '1.0.0', flexbox : '1.0.0',
material : '1.0.0-rc01', material : '1.0.0-beta01',
room : '2.0.0-rc01', room : '2.0.0-rc01',
lifecycle : '2.0.0-rc01', lifecycle : '2.0.0-rc01',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment