Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d72a0b49 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz Committed by Android (Google) Code Review
Browse files

Merge "[SingleLineConversationView] Align avatar logic with ConversationLayout" into main

parents 26cd5061 2ce453ee
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ internal object SingleLineViewInflater {
            return SingleIcon(null)
        }
        val userKey = user.getKeyOrName()
        var conversationIcon: Icon? = null
        var conversationIcon: Icon? = shortcutIcon
        var conversationText: CharSequence? = conversationTitle

        val groups = groupMessages(messages, historicMessages)
@@ -253,10 +253,6 @@ internal object SingleLineViewInflater {
        if (!isGroupConversation) {
            // Conversation is one-to-one, load the single icon
            // Let's resolve the icon / text from the last sender
            if (shortcutIcon != null) {
                conversationIcon = shortcutIcon
            }

            for (i in messages.lastIndex downTo 0) {
                val message = messages[i]
                val sender = message.senderPerson