-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Masquer les identifiants matrix #8
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pleins de commentaires après ne relecture studieuse :)
...in/kotlin/io/element/android/features/messages/impl/mentions/MentionSuggestionsPickerView.kt
Outdated
Show resolved
Hide resolved
...element/android/features/roomdetails/impl/rolesandpermissions/changeroles/ChangeRolesView.kt
Outdated
Show resolved
Hide resolved
...d/src/main/kotlin/io/element/android/features/userprofile/shared/UserProfileHeaderSection.kt
Outdated
Show resolved
Hide resolved
...ile/shared/src/main/kotlin/io/element/android/features/userprofile/shared/UserProfileView.kt
Outdated
Show resolved
Hide resolved
@@ -69,7 +70,7 @@ fun UserProfileView( | |||
UserProfileHeaderSection( | |||
avatarUrl = state.avatarUrl, | |||
userId = state.userId, | |||
userName = state.userName, | |||
userName = state.userName ?: state.userId.toDisplayName(), // TCHAP hide the Matrix Id | |||
openAvatarPreview = { avatarUrl -> | |||
openAvatarPreview(state.userName ?: state.userId.value, avatarUrl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ne faudrait-il pas faire la même modification que 2 lignes plus haut ?
* @param displayName the display name to compute. | ||
* @return displayName without domain (or the display name itself if no domain has been found). | ||
*/ | ||
fun getNameFromDisplayName(displayName: String): String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Utiliser une regex ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai refactorisé
* @return displayName without name, empty string if no domain is available. | ||
*/ | ||
fun getDomainFromDisplayName(displayName: String): String { | ||
return displayName.split(DISPLAY_NAME_FIRST_DELIMITER) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Utiliser ne regex ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai refactorisé
libraries/tchaputils/src/main/java/fr/gouv/tchap/libraries/tchaputils/TchapPatterns.kt
Outdated
Show resolved
Hide resolved
libraries/tchaputils/src/main/java/fr/gouv/tchap/libraries/tchaputils/TchapPatterns.kt
Show resolved
Hide resolved
@@ -72,7 +72,7 @@ class MarkdownTextEditorState( | |||
} | |||
is ResolvedMentionSuggestion.Member -> { | |||
val currentText = SpannableStringBuilder(text.value()) | |||
val text = mention.roomMember.displayName?.prependIndent("@") ?: mention.roomMember.userId.value | |||
val text = mention.roomMember.displayName?.prependIndent("@") ?: mention.roomMember.userId.value // TCHAP check needed about mxid displaying |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changer le commentaire en // TCHAP TODO
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je me pose encore la question
12aa14e
to
73674a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
PS : tu as compté le nb de 'isDebugBuild' ? 😆
d9dfc66
to
10012d4
Compare
10012d4
to
68ca992
Compare
Content
Motivation and context
#4
Screenshots / GIFs
Tests
Tested devices
Checklist