Skip to content

Commit 35dc66e

Browse files
committed
fix: different types inference with latest stream-chat changes
1 parent ad0dbc8 commit 35dc66e

File tree

6 files changed

+14
-17
lines changed

6 files changed

+14
-17
lines changed

package/expo-package/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4772,10 +4772,10 @@ [email protected], stream-buffers@~2.2.0:
47724772
version "0.0.0"
47734773
uid ""
47744774

4775-
4776-
version "9.0.0-rc.7"
4777-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.0.0-rc.7.tgz#c2c1ab17cda9c55a0068720164228b3d92852db7"
4778-
integrity sha512-hvwilti9vqEGBnD8v81/4s1IOgOKmzG+d/49BDGzrwUl8M2yDLvIWd93Xo4gj/+0edEgcOVaW4gncenEqXVR9A==
4775+
4776+
version "9.0.0-rc.8"
4777+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.0.0-rc.8.tgz#e188e481841493584691ae491916843d0ef5f9cd"
4778+
integrity sha512-P+Ksnu1cQQfL1t2/QTJ5rr/z2Jehvd2ap41xZgtfbJssHSD7ahe14TCF/1L7q4jjaNlZcTtLcKXCWbbOdKjDcg==
47794779
dependencies:
47804780
"@types/jsonwebtoken" "^9.0.8"
47814781
"@types/ws" "^8.5.14"

package/native-package/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3444,10 +3444,10 @@ statuses@~1.5.0:
34443444
version "0.0.0"
34453445
uid ""
34463446

3447-
3448-
version "9.0.0-rc.7"
3449-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.0.0-rc.7.tgz#c2c1ab17cda9c55a0068720164228b3d92852db7"
3450-
integrity sha512-hvwilti9vqEGBnD8v81/4s1IOgOKmzG+d/49BDGzrwUl8M2yDLvIWd93Xo4gj/+0edEgcOVaW4gncenEqXVR9A==
3447+
3448+
version "9.0.0-rc.8"
3449+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.0.0-rc.8.tgz#e188e481841493584691ae491916843d0ef5f9cd"
3450+
integrity sha512-P+Ksnu1cQQfL1t2/QTJ5rr/z2Jehvd2ap41xZgtfbJssHSD7ahe14TCF/1L7q4jjaNlZcTtLcKXCWbbOdKjDcg==
34513451
dependencies:
34523452
"@types/jsonwebtoken" "^9.0.8"
34533453
"@types/ws" "^8.5.14"

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"path": "0.12.7",
7878
"react-native-markdown-package": "1.8.2",
7979
"react-native-url-polyfill": "^1.3.0",
80-
"stream-chat": "9.0.0-rc.7",
80+
"stream-chat": "9.0.0-rc.8",
8181
"use-sync-external-store": "^1.4.0"
8282
},
8383
"peerDependencies": {

package/src/store/mappers/mapStorableToPoll.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ export const mapStorableToPoll = (pollRow: TableRow<'poll'>): PollResponse => {
3030
allow_answers,
3131
allow_user_suggested_options,
3232
answers_count,
33-
// TODO: Investigate why this is now here, this is just a quickfix for now as we do not use it.
34-
cid: '',
3533
created_at,
3634
created_by: JSON.parse(created_by),
3735
created_by_id,

package/src/types/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,8 @@ export interface DefaultUserType {
6565
}
6666

6767
export interface DefaultChannelType {
68-
[key: string]: unknown;
69-
7068
image?: string;
69+
name?: string;
7170
}
7271

7372
export interface DefaultCommandType {

package/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7680,10 +7680,10 @@ statuses@~1.5.0:
76807680
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
76817681
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
76827682

7683-
7684-
version "9.0.0-rc.7"
7685-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.0.0-rc.7.tgz#c2c1ab17cda9c55a0068720164228b3d92852db7"
7686-
integrity sha512-hvwilti9vqEGBnD8v81/4s1IOgOKmzG+d/49BDGzrwUl8M2yDLvIWd93Xo4gj/+0edEgcOVaW4gncenEqXVR9A==
7683+
7684+
version "9.0.0-rc.8"
7685+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.0.0-rc.8.tgz#e188e481841493584691ae491916843d0ef5f9cd"
7686+
integrity sha512-P+Ksnu1cQQfL1t2/QTJ5rr/z2Jehvd2ap41xZgtfbJssHSD7ahe14TCF/1L7q4jjaNlZcTtLcKXCWbbOdKjDcg==
76877687
dependencies:
76887688
"@types/jsonwebtoken" "^9.0.8"
76897689
"@types/ws" "^8.5.14"

0 commit comments

Comments
 (0)