improve code formatting

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2023-02-27 17:21:43 +01:00
parent 6cdfa88992
commit 19e3b6d0b1
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 3 additions and 2 deletions

View file

@ -74,6 +74,7 @@ class IncomingTextMessageViewHolder(itemView: View, payload: Any) : MessageHolde
lateinit var dateUtils: DateUtils
lateinit var commonMessageInterface: CommonMessageInterface
override fun onBind(message: ChatMessage) {
super.onBind(message)
sharedApplication!!.componentApplication.inject(this)

View file

@ -3488,9 +3488,9 @@ class ChatController(args: Bundle) :
}
fun jumpToQuotedMessage(parentMessage: ChatMessage) {
for(position in 0 until(adapter!!.items.size)) {
for (position in 0 until (adapter!!.items.size)) {
val currentItem = adapter?.items?.get(position)?.item
if( currentItem is ChatMessage && currentItem.id == parentMessage.id) {
if (currentItem is ChatMessage && currentItem.id == parentMessage.id) {
layoutManager!!.scrollToPosition(position)
break
}