Skip to content

Commit c423453

Browse files
authored
fix: remove scrollToFirstUnreadThreshold (#3012)
* fix: remove scrollToFirstUnreadThreshold * chore: include lock files too
1 parent 70e6c70 commit c423453

File tree

5 files changed

+27
-42
lines changed

5 files changed

+27
-42
lines changed

examples/SampleApp/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,7 +2213,7 @@ PODS:
22132213
- libwebp (~> 1.0)
22142214
- SDWebImage/Core (~> 5.10)
22152215
- SocketRocket (0.7.1)
2216-
- stream-chat-react-native (6.6.6):
2216+
- stream-chat-react-native (6.6.7):
22172217
- DoubleConversion
22182218
- glog
22192219
- hermes-engine
@@ -2637,9 +2637,9 @@ SPEC CHECKSUMS:
26372637
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
26382638
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
26392639
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
2640-
stream-chat-react-native: 3495d75137b4ded6b0cdf42395e89a484063c78f
2640+
stream-chat-react-native: 6b89c43ee042e7a6f00e6eaddf3228b712884846
26412641
Yoga: be02ca501b03c79d7027a6bbbd0a8db985034f11
26422642

26432643
PODFILE CHECKSUM: 4f662370295f8f9cee909f1a4c59a614999a209d
26442644

2645-
COCOAPODS: 1.14.3
2645+
COCOAPODS: 1.16.2

examples/SampleApp/yarn.lock

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7530,10 +7530,10 @@ statuses@~1.5.0:
75307530
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
75317531
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
75327532

7533-
7534-
version "6.6.6"
7535-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.6.6.tgz#d701beb9652f0a5851286f752d8c4fdadb3e0603"
7536-
integrity sha512-sfBtWz4K4OzhFDMRaPF2xMj7aP9FQU4dMN1XCsmRT07hyYn6iEviECxNttYvoRLB1zNdeja5cL63IDY3UZSpAQ==
7533+
7534+
version "6.6.7"
7535+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.6.7.tgz#d887234af18890c3396f1b8b5f169d9b28a793ab"
7536+
integrity sha512-Xc/S92nUBSwfVPZqNjt/zNs/DJcRV1aRa/+yCSBCqjCwo0EuiWEP9yKy3xGxBkehNe4vaIDvkeREduA4dRUGpA==
75377537
dependencies:
75387538
"@gorhom/bottom-sheet" "^5.1.1"
75397539
dayjs "1.10.5"
@@ -7546,7 +7546,7 @@ [email protected]:
75467546
path "0.12.7"
75477547
react-native-markdown-package "1.8.2"
75487548
react-native-url-polyfill "^1.3.0"
7549-
stream-chat "^8.57.5"
7549+
stream-chat "^8.57.6"
75507550
use-sync-external-store "^1.4.0"
75517551

75527552
"stream-chat-react-native-core@link:../../package":
@@ -7557,21 +7557,6 @@ [email protected]:
75577557
version "0.0.0"
75587558
uid ""
75597559

7560-
stream-chat@^8.57.5:
7561-
version "8.57.5"
7562-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.57.5.tgz#1b49b7504371e19a539465e2ae5dc86aa3269637"
7563-
integrity sha512-ndcbH/zGzUIAhZLGn1owVV8MeNvVfWITIlhAhfmnsV7RLoo/eiGFEuP4aNoG1YRos/g9xJQ7TEmKpz8xYqo13w==
7564-
dependencies:
7565-
"@babel/runtime" "^7.16.3"
7566-
"@types/jsonwebtoken" "~9.0.0"
7567-
"@types/ws" "^7.4.0"
7568-
axios "^1.6.0"
7569-
base64-js "^1.5.1"
7570-
form-data "^4.0.0"
7571-
isomorphic-ws "^4.0.1"
7572-
jsonwebtoken "~9.0.0"
7573-
ws "^7.5.10"
7574-
75757560
stream-chat@^8.57.6:
75767561
version "8.57.6"
75777562
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.57.6.tgz#dd3a4a0a024ee44bfa6ae7ca15648e6c9f2e498f"

package/expo-package/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4733,10 +4733,10 @@ [email protected], stream-buffers@~2.2.0:
47334733
resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4"
47344734
integrity sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg==
47354735

4736-
4737-
version "6.6.6"
4738-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.6.6.tgz#d701beb9652f0a5851286f752d8c4fdadb3e0603"
4739-
integrity sha512-sfBtWz4K4OzhFDMRaPF2xMj7aP9FQU4dMN1XCsmRT07hyYn6iEviECxNttYvoRLB1zNdeja5cL63IDY3UZSpAQ==
4736+
4737+
version "6.6.7"
4738+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.6.7.tgz#d887234af18890c3396f1b8b5f169d9b28a793ab"
4739+
integrity sha512-Xc/S92nUBSwfVPZqNjt/zNs/DJcRV1aRa/+yCSBCqjCwo0EuiWEP9yKy3xGxBkehNe4vaIDvkeREduA4dRUGpA==
47404740
dependencies:
47414741
"@gorhom/bottom-sheet" "^5.1.1"
47424742
dayjs "1.10.5"
@@ -4749,13 +4749,13 @@ [email protected]:
47494749
path "0.12.7"
47504750
react-native-markdown-package "1.8.2"
47514751
react-native-url-polyfill "^1.3.0"
4752-
stream-chat "^8.57.5"
4752+
stream-chat "^8.57.6"
47534753
use-sync-external-store "^1.4.0"
47544754

4755-
stream-chat@^8.57.5:
4756-
version "8.57.5"
4757-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.57.5.tgz#1b49b7504371e19a539465e2ae5dc86aa3269637"
4758-
integrity sha512-ndcbH/zGzUIAhZLGn1owVV8MeNvVfWITIlhAhfmnsV7RLoo/eiGFEuP4aNoG1YRos/g9xJQ7TEmKpz8xYqo13w==
4755+
stream-chat@^8.57.6:
4756+
version "8.57.6"
4757+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.57.6.tgz#dd3a4a0a024ee44bfa6ae7ca15648e6c9f2e498f"
4758+
integrity sha512-+zkC5DtxvdkEBAv7dCzzO4WWosjaM15EjsH3q4xD1nX/yf2qT6BMhPJguM+CUWxwlFh32X0KR+ARtD0ChPqtnA==
47594759
dependencies:
47604760
"@babel/runtime" "^7.16.3"
47614761
"@types/jsonwebtoken" "~9.0.0"

package/native-package/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3409,10 +3409,10 @@ statuses@~1.5.0:
34093409
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
34103410
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
34113411

3412-
3413-
version "6.6.6"
3414-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.6.6.tgz#d701beb9652f0a5851286f752d8c4fdadb3e0603"
3415-
integrity sha512-sfBtWz4K4OzhFDMRaPF2xMj7aP9FQU4dMN1XCsmRT07hyYn6iEviECxNttYvoRLB1zNdeja5cL63IDY3UZSpAQ==
3412+
3413+
version "6.6.7"
3414+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.6.7.tgz#d887234af18890c3396f1b8b5f169d9b28a793ab"
3415+
integrity sha512-Xc/S92nUBSwfVPZqNjt/zNs/DJcRV1aRa/+yCSBCqjCwo0EuiWEP9yKy3xGxBkehNe4vaIDvkeREduA4dRUGpA==
34163416
dependencies:
34173417
"@gorhom/bottom-sheet" "^5.1.1"
34183418
dayjs "1.10.5"
@@ -3425,13 +3425,13 @@ [email protected]:
34253425
path "0.12.7"
34263426
react-native-markdown-package "1.8.2"
34273427
react-native-url-polyfill "^1.3.0"
3428-
stream-chat "^8.57.5"
3428+
stream-chat "^8.57.6"
34293429
use-sync-external-store "^1.4.0"
34303430

3431-
stream-chat@^8.57.5:
3432-
version "8.57.5"
3433-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.57.5.tgz#1b49b7504371e19a539465e2ae5dc86aa3269637"
3434-
integrity sha512-ndcbH/zGzUIAhZLGn1owVV8MeNvVfWITIlhAhfmnsV7RLoo/eiGFEuP4aNoG1YRos/g9xJQ7TEmKpz8xYqo13w==
3431+
stream-chat@^8.57.6:
3432+
version "8.57.6"
3433+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.57.6.tgz#dd3a4a0a024ee44bfa6ae7ca15648e6c9f2e498f"
3434+
integrity sha512-+zkC5DtxvdkEBAv7dCzzO4WWosjaM15EjsH3q4xD1nX/yf2qT6BMhPJguM+CUWxwlFh32X0KR+ARtD0ChPqtnA==
34353435
dependencies:
34363436
"@babel/runtime" "^7.16.3"
34373437
"@types/jsonwebtoken" "~9.0.0"

package/src/components/Channel/Channel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export const reactionData: ReactionData[] = [
228228
* If count of unread messages is less than 4, then no need to scroll to first unread message,
229229
* since first unread message will be in visible frame anyways.
230230
*/
231-
const scrollToFirstUnreadThreshold = 4;
231+
const scrollToFirstUnreadThreshold = 0;
232232

233233
const defaultThrottleInterval = 500;
234234
const defaultDebounceInterval = 500;

0 commit comments

Comments
 (0)