File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/src/main/java/org/schabi/newpipe/ui/components/video/comment Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,16 @@ import org.schabi.newpipe.viewmodels.VideoDetailViewModel
3838import org.schabi.newpipe.viewmodels.util.Resource
3939
4040@Composable
41- fun CommentSection (videoDetailViewModel : VideoDetailViewModel ) {
42- val streamState by videoDetailViewModel .streamState.collectAsStateWithLifecycle()
43- val commentState by videoDetailViewModel .commentState.collectAsStateWithLifecycle()
41+ fun CommentSection (viewModel : VideoDetailViewModel ) {
42+ val streamState by viewModel .streamState.collectAsStateWithLifecycle()
43+ val commentState by viewModel .commentState.collectAsStateWithLifecycle()
4444 val avatars = (streamState as ? Resource .Success )?.data?.uploaderAvatars.orEmpty()
4545 val uploaderAvatarUrl = ImageStrategy .choosePreferredImage(avatars)
4646
4747 CommentSection (
4848 commentState,
4949 uploaderAvatarUrl,
50- videoDetailViewModel .comments,
50+ viewModel .comments,
5151 )
5252}
5353
You can’t perform that action at this time.
0 commit comments