Skip to content

Commit 9db8b7a

Browse files
Fixing docs
1 parent d9d9c7f commit 9db8b7a

File tree

5 files changed

+111
-4
lines changed

5 files changed

+111
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ vendor
1515
pods
1616
.gradle
1717
.idea
18-
build
18+
examples/SampleApp/build
1919
local.properties
2020
xcuserdata
2121
.tern-port

docs/build/bundle.38561380.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/*
2+
object-assign
3+
(c) Sindre Sorhus
4+
@license MIT
5+
*/
6+
7+
/*!
8+
* @overview es6-promise - a tiny implementation of Promises/A+.
9+
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
10+
* @license Licensed under MIT license
11+
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
12+
* @version v4.2.8+1e68dce6
13+
*/
14+
15+
/*!
16+
* The buffer module from node.js, for the browser.
17+
*
18+
* @author Feross Aboukhadijeh <[email protected]> <http://feross.org>
19+
* @license MIT
20+
*/
21+
22+
/*!
23+
* The buffer module from node.js, for the browser.
24+
*
25+
* @author Feross Aboukhadijeh <http://feross.org>
26+
* @license MIT
27+
*/
28+
29+
/*!
30+
* mime-db
31+
* Copyright(c) 2014 Jonathan Ong
32+
* MIT Licensed
33+
*/
34+
35+
/*!
36+
* mime-types
37+
* Copyright(c) 2014 Jonathan Ong
38+
* Copyright(c) 2015 Douglas Christopher Wilson
39+
* MIT Licensed
40+
*/
41+
42+
/*!
43+
* regjsgen 0.5.2
44+
* Copyright 2014-2020 Benjamin Tan <https://ofcr.se/>
45+
* Available under the MIT license <https://github.com/bnjmnt4n/regjsgen/blob/master/LICENSE-MIT.txt>
46+
*/
47+
48+
/*! https://mths.be/regenerate v1.4.1 by @mathias | MIT license */
49+
50+
/**
51+
* A better abstraction over CSS.
52+
*
53+
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
54+
* @website https://github.com/cssinjs/jss
55+
* @license MIT
56+
*/
57+
58+
/**
59+
* Prism: Lightweight, robust, elegant syntax highlighting
60+
*
61+
* @license MIT <https://opensource.org/licenses/MIT>
62+
* @author Lea Verou <https://lea.verou.me>
63+
* @namespace
64+
* @public
65+
*/
66+
67+
/** @license React v0.19.1
68+
* scheduler.production.min.js
69+
*
70+
* Copyright (c) Facebook, Inc. and its affiliates.
71+
*
72+
* This source code is licensed under the MIT license found in the
73+
* LICENSE file in the root directory of this source tree.
74+
*/
75+
76+
/** @license React v16.13.1
77+
* react-dom.production.min.js
78+
*
79+
* Copyright (c) Facebook, Inc. and its affiliates.
80+
*
81+
* This source code is licensed under the MIT license found in the
82+
* LICENSE file in the root directory of this source tree.
83+
*/
84+
85+
/** @license React v16.13.1
86+
* react-is.production.min.js
87+
*
88+
* Copyright (c) Facebook, Inc. and its affiliates.
89+
*
90+
* This source code is licensed under the MIT license found in the
91+
* LICENSE file in the root directory of this source tree.
92+
*/
93+
94+
/** @license React v16.13.1
95+
* react.production.min.js
96+
*
97+
* Copyright (c) Facebook, Inc. and its affiliates.
98+
*
99+
* This source code is licensed under the MIT license found in the
100+
* LICENSE file in the root directory of this source tree.
101+
*/

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
</head>
1010
<body>
1111
<div id="rsg-root"></div>
12-
<script src="build/bundle.7ded6173.js"></script>
12+
<script src="build/bundle.38561380.js"></script>
1313
</body>
1414
</html>

src/components/Chat/Chat.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,12 @@ export const Chat = <
154154
>(client);
155155

156156
useEffect(() => {
157-
client?.setUserAgent(`stream-chat-react-native-${Platform.OS}-${version}`);
158-
client.recoverStateOnReconnect = false;
157+
if (client) {
158+
client?.setUserAgent(
159+
`stream-chat-react-native-${Platform.OS}-${version}`,
160+
);
161+
client.recoverStateOnReconnect = false;
162+
}
159163
}, []);
160164

161165
const setActiveChannel = (newChannel?: Channel<At, Ch, Co, Ev, Me, Re, Us>) =>

0 commit comments

Comments
 (0)