mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 12:00:03 +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 {
|
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,
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
|
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue