mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 23:25:20 +03:00
Merge pull request #2844 from nextcloud/feature/noid/scrollingInChatEnhancements
Scroll to quoted message also for outgoing messages
This commit is contained in:
commit
6ad498818d
1 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,7 @@ import com.google.android.flexbox.FlexboxLayout
|
|||
import com.nextcloud.talk.R
|
||||
import com.nextcloud.talk.application.NextcloudTalkApplication
|
||||
import com.nextcloud.talk.application.NextcloudTalkApplication.Companion.sharedApplication
|
||||
import com.nextcloud.talk.controllers.ChatController
|
||||
import com.nextcloud.talk.databinding.ItemCustomOutcomingTextMessageBinding
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage
|
||||
import com.nextcloud.talk.models.json.chat.ReadStatus
|
||||
|
@ -169,6 +170,11 @@ class OutcomingTextMessageViewHolder(itemView: View) : OutcomingTextMessageViewH
|
|||
binding.messageQuote.quotedMessageAuthor.setTextColor(textColor)
|
||||
binding.messageQuote.quotedMessage.setTextColor(textColor)
|
||||
binding.messageQuote.quoteColoredView.setBackgroundColor(textColor)
|
||||
|
||||
binding.messageQuote.quotedChatMessageView.setOnClickListener() {
|
||||
val chatController = commonMessageInterface as ChatController
|
||||
chatController.jumpToQuotedMessage(parentChatMessage)
|
||||
}
|
||||
}
|
||||
|
||||
private fun setBubbleOnChatMessage(message: ChatMessage) {
|
||||
|
|
Loading…
Reference in a new issue