mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
typo
This commit is contained in:
parent
ff3a916cab
commit
19e07f6cac
3 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ class UserListFragment @Inject constructor(
|
|||
|
||||
viewModel.observeViewEvents {
|
||||
when (it) {
|
||||
is UserListViewEvents.OpenShareMatrixToLing -> {
|
||||
is UserListViewEvents.OpenShareMatrixToLink -> {
|
||||
val text = getString(R.string.invite_friends_text, it.link)
|
||||
startSharePlainTextIntent(
|
||||
fragment = this,
|
||||
|
|
|
@ -22,5 +22,5 @@ import im.vector.app.core.platform.VectorViewEvents
|
|||
* Transient events for invite users to room screen
|
||||
*/
|
||||
sealed class UserListViewEvents : VectorViewEvents {
|
||||
data class OpenShareMatrixToLing(val link: String) : UserListViewEvents()
|
||||
data class OpenShareMatrixToLink(val link: String) : UserListViewEvents()
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ class UserListViewModel @AssistedInject constructor(@Assisted initialState: User
|
|||
|
||||
private fun handleShareMyMatrixToLink() {
|
||||
session.permalinkService().createPermalink(session.myUserId)?.let {
|
||||
_viewEvents.post(UserListViewEvents.OpenShareMatrixToLing(it))
|
||||
_viewEvents.post(UserListViewEvents.OpenShareMatrixToLink(it))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue