Skip to content

Commit

Permalink
fix(client): Fix React Native support
Browse files Browse the repository at this point in the history
Use `nanoid/non-secure` for chat IDs because React Native doesn’t support the plain `nanoid` implementation. (Chat IDs are for convenience only so security is unimportant and due to the lack of persistence collisions are also relatively unlikely.)
  • Loading branch information
delucis committed Aug 28, 2021
1 parent 6056482 commit a240bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* https://opensource.org/licenses/MIT.
*/

import { nanoid } from 'nanoid';
import { nanoid } from 'nanoid/non-secure';
import 'svelte';
import type { Dispatch, StoreEnhancer } from 'redux';
import { createStore, compose, applyMiddleware } from 'redux';
Expand Down

0 comments on commit a240bbe

Please sign in to comment.