Skip to content

Commit

Permalink
[AND-15] Fix thread replies label not showing (add isThreadMode to Me…
Browse files Browse the repository at this point in the history
…ssageListItemPayloadDiff).
  • Loading branch information
PetarVelikov committed Dec 10, 2024
1 parent bdc361e commit 2ef9043
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2889,13 +2889,14 @@ public final class io/getstream/chat/android/ui/feature/messages/list/adapter/Me

public final class io/getstream/chat/android/ui/feature/messages/list/adapter/MessageListItemPayloadDiff {
public static final field Companion Lio/getstream/chat/android/ui/feature/messages/list/adapter/MessageListItemPayloadDiff$Companion;
public fun <init> (ZZZZZZZZZZZZZ)V
public fun <init> (ZZZZZZZZZZZZZZ)V
public final fun anyChanged ()Z
public final fun component1 ()Z
public final fun component10 ()Z
public final fun component11 ()Z
public final fun component12 ()Z
public final fun component13 ()Z
public final fun component14 ()Z
public final fun component2 ()Z
public final fun component3 ()Z
public final fun component4 ()Z
Expand All @@ -2904,8 +2905,8 @@ public final class io/getstream/chat/android/ui/feature/messages/list/adapter/Me
public final fun component7 ()Z
public final fun component8 ()Z
public final fun component9 ()Z
public final fun copy (ZZZZZZZZZZZZZ)Lio/getstream/chat/android/ui/feature/messages/list/adapter/MessageListItemPayloadDiff;
public static synthetic fun copy$default (Lio/getstream/chat/android/ui/feature/messages/list/adapter/MessageListItemPayloadDiff;ZZZZZZZZZZZZZILjava/lang/Object;)Lio/getstream/chat/android/ui/feature/messages/list/adapter/MessageListItemPayloadDiff;
public final fun copy (ZZZZZZZZZZZZZZ)Lio/getstream/chat/android/ui/feature/messages/list/adapter/MessageListItemPayloadDiff;
public static synthetic fun copy$default (Lio/getstream/chat/android/ui/feature/messages/list/adapter/MessageListItemPayloadDiff;ZZZZZZZZZZZZZZILjava/lang/Object;)Lio/getstream/chat/android/ui/feature/messages/list/adapter/MessageListItemPayloadDiff;
public fun equals (Ljava/lang/Object;)Z
public final fun getAttachments ()Z
public final fun getDeleted ()Z
Expand All @@ -2919,6 +2920,7 @@ public final class io/getstream/chat/android/ui/feature/messages/list/adapter/Me
public final fun getReplyText ()Z
public final fun getSyncStatus ()Z
public final fun getText ()Z
public final fun getThreadMode ()Z
public final fun getUser ()Z
public fun hashCode ()I
public final fun plus (Lio/getstream/chat/android/ui/feature/messages/list/adapter/MessageListItemPayloadDiff;)Lio/getstream/chat/android/ui/feature/messages/list/adapter/MessageListItemPayloadDiff;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public data class MessageListItemPayloadDiff(
val mentions: Boolean,
val footer: Boolean,
val poll: Boolean,
val threadMode: Boolean,
) {
public operator fun plus(other: MessageListItemPayloadDiff): MessageListItemPayloadDiff {
return MessageListItemPayloadDiff(
Expand All @@ -46,6 +47,7 @@ public data class MessageListItemPayloadDiff(
mentions = mentions || other.mentions,
footer = footer || other.footer,
poll = poll || other.poll,
threadMode = threadMode || other.threadMode,
)
}

Expand All @@ -66,6 +68,7 @@ public data class MessageListItemPayloadDiff(
mentions = false,
footer = false,
poll = false,
threadMode = false,
)

public val FULL: MessageListItemPayloadDiff = MessageListItemPayloadDiff(
Expand All @@ -82,6 +85,7 @@ public data class MessageListItemPayloadDiff(
mentions = true,
footer = true,
poll = true,
threadMode = true,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ internal object MessageListItemDiffCallback : DiffUtil.ItemCallback<MessageListI
mentions = oldMessage.mentionedUsers != newMessage.mentionedUsers,
footer = oldItem.showMessageFooter != newItem.showMessageFooter,
poll = oldMessage.poll != newMessage.poll,
threadMode = oldItem.isThreadMode != newItem.isThreadMode,
)
}

Expand Down

0 comments on commit 2ef9043

Please sign in to comment.