Show room name instead of root message author in thread timeline toolbar

This commit is contained in:
ariskotsomitopoulos 2022-05-04 14:11:48 +03:00
parent 4b746ee345
commit 88babbb17c

View File

@ -145,9 +145,9 @@ class ThreadListFragment @Inject constructor(
override fun onThreadSummaryClicked(threadSummary: ThreadSummary) { override fun onThreadSummaryClicked(threadSummary: ThreadSummary) {
val roomThreadDetailArgs = ThreadTimelineArgs( val roomThreadDetailArgs = ThreadTimelineArgs(
roomId = threadSummary.roomId, roomId = threadListArgs.roomId,
displayName = threadSummary.rootThreadSenderInfo.displayName, displayName = threadListArgs.displayName,
avatarUrl = threadSummary.rootThreadSenderInfo.avatarUrl, avatarUrl = threadListArgs.avatarUrl,
roomEncryptionTrustLevel = null, roomEncryptionTrustLevel = null,
rootThreadEventId = threadSummary.rootEventId) rootThreadEventId = threadSummary.rootEventId)
(activity as? ThreadsActivity)?.navigateToThreadTimeline(roomThreadDetailArgs) (activity as? ThreadsActivity)?.navigateToThreadTimeline(roomThreadDetailArgs)
@ -155,9 +155,9 @@ class ThreadListFragment @Inject constructor(
override fun onThreadListClicked(timelineEvent: TimelineEvent) { override fun onThreadListClicked(timelineEvent: TimelineEvent) {
val threadTimelineArgs = ThreadTimelineArgs( val threadTimelineArgs = ThreadTimelineArgs(
roomId = timelineEvent.roomId, roomId = threadListArgs.roomId,
displayName = timelineEvent.senderInfo.displayName, displayName = threadListArgs.displayName,
avatarUrl = timelineEvent.senderInfo.avatarUrl, avatarUrl = threadListArgs.avatarUrl,
roomEncryptionTrustLevel = null, roomEncryptionTrustLevel = null,
rootThreadEventId = timelineEvent.eventId) rootThreadEventId = timelineEvent.eventId)
(activity as? ThreadsActivity)?.navigateToThreadTimeline(threadTimelineArgs) (activity as? ThreadsActivity)?.navigateToThreadTimeline(threadTimelineArgs)