fix(android): LikesRepository.toggleLike param is desiredState not liked
Compile error from the LikedTab inline-heart commit (05c7d922) —
toggleLike's third param is named desiredState, I called it 'liked'.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -95,7 +95,7 @@ class LikedTabViewModel @Inject constructor(
|
||||
*/
|
||||
fun unlikeTrack(trackId: String) {
|
||||
viewModelScope.launch {
|
||||
repository.toggleLike(LikesRepository.ENTITY_TRACK, trackId, liked = false)
|
||||
repository.toggleLike(LikesRepository.ENTITY_TRACK, trackId, desiredState = false)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user