aboutsummaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-04-09 13:46:42 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-04-09 13:46:42 -0700
commitbdd1ed17600da7b766e2b0fa97ad4cbf01234819 (patch)
treed4b8097cbea9ec7697967a62f2bf0be8ab30cc0a /src/store
parent55a5fa01be46a193d3917e1a334f300593a8ec01 (diff)
removed client ready from redux
Diffstat (limited to 'src/store')
-rw-r--r--src/store/actions/user.ts15
-rw-r--r--src/store/initialStates.ts1
2 files changed, 0 insertions, 16 deletions
diff --git a/src/store/actions/user.ts b/src/store/actions/user.ts
index 0ed57fe6..c7d0d5a7 100644
--- a/src/store/actions/user.ts
+++ b/src/store/actions/user.ts
@@ -11,7 +11,6 @@ import {getTokenOrLogout} from '../../utils';
import {
clearHeaderAndProfileImages,
profileCompletionStageUpdated,
- setChatClientReady,
setIsOnboardedUser,
setNewNotificationReceived,
setNewVersionAvailable,
@@ -235,17 +234,3 @@ export const suggestedPeopleAnimatedTutorialFinished = (
}
};
-export const updateChatClientReady = (
- chatClientReady: boolean,
-): ThunkAction<Promise<void>, RootState, unknown, Action<string>> => async (
- dispatch,
-) => {
- try {
- dispatch({
- type: setChatClientReady.type,
- payload: {chatClientReady},
- });
- } catch (error) {
- console.log(error);
- }
-};
diff --git a/src/store/initialStates.ts b/src/store/initialStates.ts
index 546c57a9..02331eb6 100644
--- a/src/store/initialStates.ts
+++ b/src/store/initialStates.ts
@@ -41,7 +41,6 @@ export const EMPTY_PROFILE_PREVIEW_LIST = <ProfilePreviewType[]>[];
export const NO_USER_DATA = {
user: <UserType>NO_USER,
- chatClientReady: <boolean>false,
profile: <ProfileInfoType>NO_PROFILE,
avatar: <string | undefined>undefined,
cover: <string | undefined>undefined,