stream-chat-react 13.6.4 → 13.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.node.cjs
CHANGED
|
@@ -34074,12 +34074,14 @@ var useAttachmentSelectorActionsFiltered = (original) => {
|
|
|
34074
34074
|
} = useComponentContext();
|
|
34075
34075
|
const { channelCapabilities } = useChannelStateContext();
|
|
34076
34076
|
const messageComposer = useMessageComposer();
|
|
34077
|
+
const channelConfig = messageComposer.channel.getConfig();
|
|
34077
34078
|
return original.filter((action) => {
|
|
34078
|
-
if (action.type === "uploadFile")
|
|
34079
|
+
if (action.type === "uploadFile")
|
|
34080
|
+
return channelCapabilities["upload-file"] && channelConfig?.uploads;
|
|
34079
34081
|
if (action.type === "createPoll")
|
|
34080
|
-
return channelCapabilities["send-poll"] && !messageComposer.threadId;
|
|
34082
|
+
return channelCapabilities["send-poll"] && !messageComposer.threadId && channelConfig?.polls;
|
|
34081
34083
|
if (action.type === "addLocation") {
|
|
34082
|
-
return
|
|
34084
|
+
return channelConfig?.shared_locations && !messageComposer.threadId;
|
|
34083
34085
|
}
|
|
34084
34086
|
return true;
|
|
34085
34087
|
}).map((action) => {
|
|
@@ -38029,7 +38031,7 @@ var useChat = ({
|
|
|
38029
38031
|
};
|
|
38030
38032
|
(0, import_react282.useEffect)(() => {
|
|
38031
38033
|
if (!client) return;
|
|
38032
|
-
const version = "13.6.
|
|
38034
|
+
const version = "13.6.5";
|
|
38033
38035
|
const userAgent = client.getUserAgent();
|
|
38034
38036
|
if (!userAgent.includes("stream-chat-react")) {
|
|
38035
38037
|
client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);
|