diff options
| author | Shravya Ramesh <shravs1208@gmail.com> | 2021-04-09 11:30:20 -0700 |
|---|---|---|
| committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-04-09 11:30:20 -0700 |
| commit | 9fef149f9c2185c191d1b856d7939449ccc4f1d0 (patch) | |
| tree | 77fd36601c857cdff5be7fb9cc69aa3d5c38a3c5 /src/store/reducers | |
| parent | 0a09c73cabc656b85465102b8e266e1a0cc1fdf2 (diff) | |
Added boolean for user connection status
Diffstat (limited to 'src/store/reducers')
| -rw-r--r-- | src/store/reducers/userReducer.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/store/reducers/userReducer.ts b/src/store/reducers/userReducer.ts index 9ff9ba01..0b958cac 100644 --- a/src/store/reducers/userReducer.ts +++ b/src/store/reducers/userReducer.ts @@ -75,6 +75,9 @@ const userDataSlice = createSlice({ state.avatar = ''; state.cover = ''; }, + setChatClientReady: (state, action) => { + state.chatClientReady = action.payload.chatClientReady; + }, }, }); @@ -90,5 +93,6 @@ export const { setReplyPosted, setSuggestedPeopleImage, clearHeaderAndProfileImages, + setChatClientReady, } = userDataSlice.actions; export const userDataReducer = userDataSlice.reducer; |
