Merge pull request #7325 from vector-im/feature/mna/device-manager-hide-ip-current-session

[Device management] Hide the IP address and last activity date on current session (PSG-823)
This commit is contained in:
Maxime NATUREL 2022-10-12 15:56:30 +02:00 committed by GitHub
commit 7877ef92cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/7324.wip Normal file
View File

@ -0,0 +1 @@
[Device management] Hide the IP address and last activity date on current session

View File

@ -215,7 +215,7 @@ class SessionOverviewFragment :
isVerifyButtonVisible = isCurrentSession || viewState.isCurrentSessionTrusted, isVerifyButtonVisible = isCurrentSession || viewState.isCurrentSessionTrusted,
isDetailsButtonVisible = false, isDetailsButtonVisible = false,
isLearnMoreLinkVisible = true, isLearnMoreLinkVisible = true,
isLastSeenDetailsVisible = true, isLastSeenDetailsVisible = !isCurrentSession,
) )
views.sessionOverviewInfo.render(infoViewState, dateFormatter, drawableProvider, colorProvider, stringProvider) views.sessionOverviewInfo.render(infoViewState, dateFormatter, drawableProvider, colorProvider, stringProvider)
views.sessionOverviewInfo.onLearnMoreClickListener = { views.sessionOverviewInfo.onLearnMoreClickListener = {