diff --git a/vector/src/main/java/im/vector/app/features/roomprofile/RoomProfileController.kt b/vector/src/main/java/im/vector/app/features/roomprofile/RoomProfileController.kt
index 815478b46b..13efaf0d10 100644
--- a/vector/src/main/java/im/vector/app/features/roomprofile/RoomProfileController.kt
+++ b/vector/src/main/java/im/vector/app/features/roomprofile/RoomProfileController.kt
@@ -57,7 +57,7 @@ class RoomProfileController @Inject constructor(
// Security
buildProfileSection(stringProvider.getString(R.string.room_profile_section_security))
val learnMoreSubtitle = if (roomSummary.isEncrypted) {
- R.string.room_profile_encrypted_subtitle
+ if (roomSummary.isDirect) R.string.direct_room_profile_encrypted_subtitle else R.string.room_profile_encrypted_subtitle
} else {
R.string.room_profile_not_encrypted_subtitle
}
@@ -71,7 +71,10 @@ class RoomProfileController @Inject constructor(
buildProfileSection(stringProvider.getString(R.string.room_profile_section_more))
buildProfileAction(
id = "settings",
- title = stringProvider.getString(R.string.room_profile_section_more_settings),
+ title = if (roomSummary.isDirect)
+ stringProvider.getString(R.string.direct_room_profile_section_more_settings)
+ else
+ stringProvider.getString(R.string.room_profile_section_more_settings),
dividerColor = dividerColor,
icon = R.drawable.ic_room_profile_settings,
action = { callback?.onSettingsClicked() }
@@ -112,7 +115,10 @@ class RoomProfileController @Inject constructor(
)
buildProfileAction(
id = "leave",
- title = stringProvider.getString(R.string.room_profile_section_more_leave),
+ title = if (roomSummary.isDirect)
+ stringProvider.getString(R.string.direct_room_profile_section_more_leave)
+ else
+ stringProvider.getString(R.string.room_profile_section_more_leave),
dividerColor = dividerColor,
divider = false,
destructive = true,
diff --git a/vector/src/main/res/values/strings.xml b/vector/src/main/res/values/strings.xml
index 887e78d102..d71195bf13 100644
--- a/vector/src/main/res/values/strings.xml
+++ b/vector/src/main/res/values/strings.xml
@@ -2118,11 +2118,13 @@
For extra security, verify %s by checking a one-time code on both your devices.\n\nFor maximum security, do this in person.
Messages in this room are not end-to-end encrypted.
Messages in this room are end-to-end encrypted.\n\nYour messages are secured with locks and only you and the recipient have the unique keys to unlock them.
+ Messages here are end-to-end encrypted.\n\nYour messages are secured with locks and only you and the recipient have the unique keys to unlock them.
Security
Learn more
More
Admin Actions
Room settings
+ Settings
Notifications
- "One person"
@@ -2130,6 +2132,7 @@
Uploads
Leave Room
+ Leave
"Leaving the room…"
Admins