[merge] Hide Element's typing indicator again

Change-Id: Iae0834b7e0ba62ffeac0beb662744d843c322ea3
This commit is contained in:
SpiritCroc 2022-11-18 16:27:22 +01:00
parent e8d470f249
commit e37d378cda
2 changed files with 6 additions and 0 deletions

View File

@ -361,11 +361,13 @@ class TimelineEventController @Inject constructor(
.setVisibilityStateChangedListener(Timeline.Direction.FORWARDS) .setVisibilityStateChangedListener(Timeline.Direction.FORWARDS)
.addWhenLoading(Timeline.Direction.FORWARDS) .addWhenLoading(Timeline.Direction.FORWARDS)
/* SC: don't use TypingItem
if (!showingForwardLoader) { if (!showingForwardLoader) {
val typingUsers = partialState.roomSummary?.typingUsers.orEmpty() val typingUsers = partialState.roomSummary?.typingUsers.orEmpty()
val typingItem = TypingItem_().id("typing_view").avatarRenderer(avatarRenderer).users(typingUsers) val typingItem = TypingItem_().id("typing_view").avatarRenderer(avatarRenderer).users(typingUsers)
add(typingItem) add(typingItem)
} }
*/
val timelineModels = getModels() val timelineModels = getModels()
add(timelineModels) add(timelineModels)

View File

@ -45,6 +45,9 @@ abstract class TypingItem : EpoxyModelWithHolder<TypingItem.TypingHolder>() {
override fun bind(holder: TypingHolder) { override fun bind(holder: TypingHolder) {
super.bind(holder) 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) val typingUsers = users.take(MAX_TYPING_MESSAGE_USERS_COUNT)
holder.typingView.apply { holder.typingView.apply {
animate().cancel() animate().cancel()
@ -68,6 +71,7 @@ abstract class TypingItem : EpoxyModelWithHolder<TypingItem.TypingHolder>() {
.start() .start()
} }
} }
*/
} }
class TypingHolder : VectorEpoxyHolder() { class TypingHolder : VectorEpoxyHolder() {