Skip to content

Commit

Permalink
fix: native image picker poll control
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Nov 7, 2024
1 parent fe08bd7 commit 7ac8534
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,17 @@ export const NativeAttachmentPicker = ({

// do not allow poll creation in threads
const buttons =
threadList && hasCreatePoll && ownCapabilities.sendPoll
? []
: [
!threadList && hasCreatePoll && ownCapabilities.sendPoll
? [
{
icon: <CreatePollIcon />,
id: 'Poll',
onPressHandler: () => {
openPollCreationDialog?.({ sendMessage });
},
},
];
]
: [];

if (hasImagePicker) {
buttons.push({
Expand Down

0 comments on commit 7ac8534

Please sign in to comment.