This commit is contained in:
Benoit Marty 2021-04-20 19:06:32 +02:00
parent ff3a916cab
commit 19e07f6cac
3 changed files with 3 additions and 3 deletions

View file

@ -89,7 +89,7 @@ class UserListFragment @Inject constructor(
viewModel.observeViewEvents { viewModel.observeViewEvents {
when (it) { when (it) {
is UserListViewEvents.OpenShareMatrixToLing -> { is UserListViewEvents.OpenShareMatrixToLink -> {
val text = getString(R.string.invite_friends_text, it.link) val text = getString(R.string.invite_friends_text, it.link)
startSharePlainTextIntent( startSharePlainTextIntent(
fragment = this, fragment = this,

View file

@ -22,5 +22,5 @@ import im.vector.app.core.platform.VectorViewEvents
* Transient events for invite users to room screen * Transient events for invite users to room screen
*/ */
sealed class UserListViewEvents : VectorViewEvents { sealed class UserListViewEvents : VectorViewEvents {
data class OpenShareMatrixToLing(val link: String) : UserListViewEvents() data class OpenShareMatrixToLink(val link: String) : UserListViewEvents()
} }

View file

@ -89,7 +89,7 @@ class UserListViewModel @AssistedInject constructor(@Assisted initialState: User
private fun handleShareMyMatrixToLink() { private fun handleShareMyMatrixToLink() {
session.permalinkService().createPermalink(session.myUserId)?.let { session.permalinkService().createPermalink(session.myUserId)?.let {
_viewEvents.post(UserListViewEvents.OpenShareMatrixToLing(it)) _viewEvents.post(UserListViewEvents.OpenShareMatrixToLink(it))
} }
} }