[merge] Hide Element's typing indicator again
Change-Id: Iae0834b7e0ba62ffeac0beb662744d843c322ea3
This commit is contained in:
parent
e8d470f249
commit
e37d378cda
|
@ -361,11 +361,13 @@ class TimelineEventController @Inject constructor(
|
|||
.setVisibilityStateChangedListener(Timeline.Direction.FORWARDS)
|
||||
.addWhenLoading(Timeline.Direction.FORWARDS)
|
||||
|
||||
/* SC: don't use TypingItem
|
||||
if (!showingForwardLoader) {
|
||||
val typingUsers = partialState.roomSummary?.typingUsers.orEmpty()
|
||||
val typingItem = TypingItem_().id("typing_view").avatarRenderer(avatarRenderer).users(typingUsers)
|
||||
add(typingItem)
|
||||
}
|
||||
*/
|
||||
|
||||
val timelineModels = getModels()
|
||||
add(timelineModels)
|
||||
|
|
|
@ -45,6 +45,9 @@ abstract class TypingItem : EpoxyModelWithHolder<TypingItem.TypingHolder>() {
|
|||
override fun bind(holder: TypingHolder) {
|
||||
super.bind(holder)
|
||||
|
||||
// SC: don't use TypingItem (but instead toolbar-based typing indicator)
|
||||
holder.typingView.isVisible = false
|
||||
/*
|
||||
val typingUsers = users.take(MAX_TYPING_MESSAGE_USERS_COUNT)
|
||||
holder.typingView.apply {
|
||||
animate().cancel()
|
||||
|
@ -68,6 +71,7 @@ abstract class TypingItem : EpoxyModelWithHolder<TypingItem.TypingHolder>() {
|
|||
.start()
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
class TypingHolder : VectorEpoxyHolder() {
|
||||
|
|
Loading…
Reference in New Issue