mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 11:48:51 +03:00
allowing null users in the email search, fixes missing indentity server helpers when inviting by email
This commit is contained in:
parent
f2c22c1985
commit
c90dbf2f38
1 changed files with 2 additions and 4 deletions
|
@ -177,11 +177,9 @@ class UserListViewModel @AssistedInject constructor(@Assisted initialState: User
|
|||
private suspend fun executeSearchEmail(search: String) {
|
||||
suspend {
|
||||
val params = listOf(ThreePid.Email(search))
|
||||
val foundThreePid = tryOrNull {
|
||||
session.identityService().lookUp(params).firstOrNull()
|
||||
}
|
||||
val foundThreePid = session.identityService().lookUp(params).firstOrNull()
|
||||
if (foundThreePid == null) {
|
||||
null
|
||||
ThreePidUser(email = search, user = null)
|
||||
} else {
|
||||
try {
|
||||
val json = session.getProfile(foundThreePid.matrixId)
|
||||
|
|
Loading…
Add table
Reference in a new issue