Skip to content

Commit

Permalink
fix: get learner name when navigating to chat from tutor home
Browse files Browse the repository at this point in the history
  • Loading branch information
Veirt committed Dec 12, 2024
1 parent 539e12b commit a08c0af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import com.tutortoise.tutortoise.utils.isoToReadableTime

class HomeScheduledSessionsAdapter(
private var items: List<SessionListItem>,
private val onChatClick: (String) -> Unit
private val onChatClick: (String, String) -> Unit
) : RecyclerView.Adapter<RecyclerView.ViewHolder>() {

private var lastAnimatedPosition = -1
Expand Down Expand Up @@ -122,7 +122,7 @@ class HomeScheduledSessionsAdapter(
.circleCrop()
.into(ivProfilePicture)

btnChat.setOnClickListener { onChatClick(order.learnerId) }
btnChat.setOnClickListener { onChatClick(order.learnerId, order.learnerName) }
}
}
}
Expand Down

0 comments on commit a08c0af

Please sign in to comment.