getUser

fun Session.getUser(userId: String): User?

Get a user using the UserService of a Session.

Return

a user with userId or null if the User is not known yet by the SDK. See org.matrix.android.sdk.api.session.user.UserService.resolveUser to ensure that a User is retrieved.

Parameters

userId

the userId to look for.