mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
get user index by remote host id
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user