mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 18:05:59 +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