Skip to content

Commit

Permalink
fix: address pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Feb 28, 2025
1 parent 8c35f25 commit 6ae27e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,11 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
['device_model', model],
// reports which bundle is being picked from the exports
['client_bundle', clientBundle],
] as const).reduce((acc, [key, value]) => (value ? acc.concat(`|${key}=${value ?? ''}`) : acc), userAgentString);
] as const).reduce(
(withArguments, [key, value]) =>
value && value.length > 0 ? withArguments.concat(`|${key}=${value}`) : withArguments,
userAgentString,
);
}

/**
Expand Down

0 comments on commit 6ae27e6

Please sign in to comment.