get user index by remote host id
This commit is contained in:
parent
11478da6ef
commit
f6b786a187
@ -122,7 +122,7 @@ object ChatModel {
|
||||
}
|
||||
|
||||
private fun getUserIndex(user: User): Int =
|
||||
users.indexOfFirst { it.user.userId == user.userId }
|
||||
users.indexOfFirst { it.user.userId == user.userId && it.user.remoteHostId == user.remoteHostId }
|
||||
|
||||
fun updateUser(user: User) {
|
||||
val i = getUserIndex(user)
|
||||
|
Loading…
Reference in New Issue
Block a user