diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/read/ReadService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/read/ReadService.kt index 8f76295fe7..4fc13e9228 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/read/ReadService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/read/ReadService.kt @@ -65,11 +65,11 @@ interface ReadService { /** * Get the eventId where the read receipt for the provided user is - * @param otherUserId the userId param to look for + * @param userId the id of the user to look for * * @return the eventId where the read receipt for the provided user is attached, or null if not found */ - fun getUserReadReceipt(otherUserId: String): String? + fun getUserReadReceipt(userId: String): String? /** * Returns a live list of read receipts for a given event diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/read/DefaultReadService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/read/DefaultReadService.kt index 162ad7d895..bea3d6624d 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/read/DefaultReadService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/read/DefaultReadService.kt @@ -107,10 +107,10 @@ internal class DefaultReadService @AssistedInject constructor( } } - override fun getUserReadReceipt(otherUserId: String): String? { + override fun getUserReadReceipt(userId: String): String? { var eventId: String? = null monarchy.doWithRealm { - eventId = ReadReceiptEntity.where(it, roomId = roomId, userId = otherUserId) + eventId = ReadReceiptEntity.where(it, roomId = roomId, userId = userId) .findFirst() ?.eventId }