diff --git a/CHANGELOG.md b/CHANGELOG.md index 5415e85d89f..c7442bcd71e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,7 @@ ## stream-chat-android-ui-components ### 🐞 Fixed +- Fix max allowed votes base on available options. [#5431](https://github.com/GetStream/stream-chat-android/pull/5431) ### ⬆️ Improved diff --git a/stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/messages/MessagesScreen.kt b/stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/messages/MessagesScreen.kt index 41a5bc6df15..804543a5e63 100644 --- a/stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/messages/MessagesScreen.kt +++ b/stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/messages/MessagesScreen.kt @@ -697,6 +697,7 @@ public fun BoxScope.AttachmentsPickerMenu( } else { 1 }, + enforceUniqueVote = action.switches.none { it.key == "maxVotesAllowed" && it.enabled }, ), ) }