We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd4b191 commit ce6135cCopy full SHA for ce6135c
package/src/components/Channel/Channel.tsx
@@ -659,6 +659,7 @@ const ChannelWithContext = <
659
const uploadAbortControllerRef = useRef<Map<string, AbortController>>(new Map());
660
661
const channelId = channel?.id || '';
662
+ const pollCreationEnabled = !channel.disconnected && channel.id && channel?.getConfig()?.polls;
663
664
useEffect(() => {
665
const initChannel = async () => {
@@ -2353,8 +2354,6 @@ const ChannelWithContext = <
2353
2354
setLoadingMoreRecent,
2355
});
2356
- const pollCreationEnabled = channel.getConfig()?.polls;
2357
-
2358
const messagesContext = useCreateMessagesContext({
2359
additionalTouchableProps,
2360
Attachment,
0 commit comments