Skip to content

Commit 1c5f19a

Browse files
committed
update service request functions' parameter
1 parent c832193 commit 1c5f19a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/hooks/useSetRooms.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import { IndicatorProps } from "../context/reducers/appReducer";
88
const useSetRooms = () => {
99
const {
1010
state: {
11+
users: { selfUser },
1112
app: {
12-
configs: { apiKey, subscriptionKey, indicators },
13+
configs: { apiKey, subscriptionKey, indicators, projectName },
1314
},
1415
},
1516
dispatch,
@@ -21,6 +22,8 @@ const useSetRooms = () => {
2122
roomIds: rooms.map((room) => room.chatRoomAuthId).join(","),
2223
apiKey,
2324
subscriptionKey,
25+
projectName,
26+
chatAuthId: selfUser!.chatAuthId,
2427
});
2528

2629
// Match the 'lastMessageReadToken' field for active rooms from the service data

src/hooks/useSetUsers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const useSetUsers = () => {
1010
state: {
1111
users: { selfUser },
1212
app: {
13-
configs: { apiKey, subscriptionKey, indicators },
13+
configs: { apiKey, subscriptionKey, indicators, projectName },
1414
},
1515
},
1616
dispatch,
@@ -27,6 +27,8 @@ const useSetUsers = () => {
2727
userIds,
2828
apiKey,
2929
subscriptionKey,
30+
projectName,
31+
chatAuthId: selfUser!.chatAuthId,
3032
});
3133

3234
// Match the 'online' field for active users from the service data

0 commit comments

Comments
 (0)