mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 02:15:35 +03:00
Improved thread rendering in the main timeline
This commit is contained in:
parent
b9934d7239
commit
be77363c34
2 changed files with 3 additions and 0 deletions
1
changelog.d/5151.misc
Normal file
1
changelog.d/5151.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Improve main timeline thread summary rendering
|
|
@ -31,6 +31,7 @@ import org.matrix.android.sdk.api.session.room.model.message.MessageVerification
|
|||
import org.matrix.android.sdk.api.session.room.timeline.TimelineEvent
|
||||
import org.matrix.android.sdk.api.session.room.timeline.getLastMessageContent
|
||||
import org.matrix.android.sdk.api.session.room.timeline.isEdition
|
||||
import org.matrix.android.sdk.api.session.room.timeline.isRootThread
|
||||
import javax.inject.Inject
|
||||
|
||||
class TimelineMessageLayoutFactory @Inject constructor(private val session: Session,
|
||||
|
@ -91,6 +92,7 @@ class TimelineMessageLayoutFactory @Inject constructor(private val session: Sess
|
|||
nextDisplayableEvent.root.getClearType() !in listOf(EventType.MESSAGE, EventType.STICKER, EventType.ENCRYPTED) ||
|
||||
isNextMessageReceivedMoreThanOneHourAgo ||
|
||||
isTileTypeMessage(nextDisplayableEvent) ||
|
||||
event.isRootThread() ||
|
||||
nextDisplayableEvent.isEdition()
|
||||
|
||||
val messageLayout = when (layoutSettingsProvider.getLayoutSettings()) {
|
||||
|
|
Loading…
Reference in a new issue