mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 14:08:44 +03:00
Merge pull request #5831 from emotionalamoeba/develop
Updated copy and moved override in profile screen
This commit is contained in:
commit
eafe65b417
3 changed files with 11 additions and 8 deletions
1
changelog.d/5825.bugfix
Normal file
1
changelog.d/5825.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Changed copy and list order in member profile screen.
|
|
@ -182,6 +182,15 @@ class RoomMemberProfileController @Inject constructor(
|
||||||
// More
|
// More
|
||||||
buildProfileSection(stringProvider.getString(R.string.room_profile_section_more))
|
buildProfileSection(stringProvider.getString(R.string.room_profile_section_more))
|
||||||
|
|
||||||
|
if (!state.isMine) {
|
||||||
|
buildProfileAction(
|
||||||
|
id = "direct",
|
||||||
|
editable = false,
|
||||||
|
title = stringProvider.getString(R.string.room_member_open_or_create_dm),
|
||||||
|
action = { callback?.onOpenDmClicked() }
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
buildProfileAction(
|
buildProfileAction(
|
||||||
id = "overrideColor",
|
id = "overrideColor",
|
||||||
editable = false,
|
editable = false,
|
||||||
|
@ -194,13 +203,6 @@ class RoomMemberProfileController @Inject constructor(
|
||||||
if (!state.isMine) {
|
if (!state.isMine) {
|
||||||
val membership = state.asyncMembership() ?: return
|
val membership = state.asyncMembership() ?: return
|
||||||
|
|
||||||
buildProfileAction(
|
|
||||||
id = "direct",
|
|
||||||
editable = false,
|
|
||||||
title = stringProvider.getString(R.string.room_member_open_or_create_dm),
|
|
||||||
action = { callback?.onOpenDmClicked() }
|
|
||||||
)
|
|
||||||
|
|
||||||
if (!state.isSpace && state.hasReadReceipt) {
|
if (!state.isSpace && state.hasReadReceipt) {
|
||||||
buildProfileAction(
|
buildProfileAction(
|
||||||
id = "read_receipt",
|
id = "read_receipt",
|
||||||
|
|
|
@ -2178,7 +2178,7 @@
|
||||||
<string name="direct_room_profile_section_more_leave">Leave</string>
|
<string name="direct_room_profile_section_more_leave">Leave</string>
|
||||||
<string name="room_profile_leaving_room">"Leaving the room…"</string>
|
<string name="room_profile_leaving_room">"Leaving the room…"</string>
|
||||||
|
|
||||||
<string name="room_member_override_nick_color">Override nick color</string>
|
<string name="room_member_override_nick_color">Override display name color</string>
|
||||||
|
|
||||||
<string name="room_member_power_level_admins">Admins</string>
|
<string name="room_member_power_level_admins">Admins</string>
|
||||||
<string name="room_member_power_level_moderators">Moderators</string>
|
<string name="room_member_power_level_moderators">Moderators</string>
|
||||||
|
|
Loading…
Reference in a new issue