Skip to content

Commit

Permalink
notif: Stop calling initNotifications with DEAD_QUEUE / ACCOUNT_SWITCH
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe committed Mar 15, 2022
1 parent cdedc60 commit b752b7a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/account/accountActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ export const accountSwitch = (index: number): GlobalThunkAction<Promise<void>> =

// TODO(#3881): Lots of issues with outbox sending
activeAccountDispatch(sendOutbox());

// TODO: Remove this. No need to do this on DEAD_QUEUE or ACCOUNT_SWITCH:
// https://chat.zulip.org/#narrow/stream/48-mobile/topic/.60remoteNotificationsRegistered.60.20listener.20too.20late/near/1148915
activeAccountDispatch(initNotifications());
};

export const removeAccount = (index: number): AllAccountsAction => ({
Expand Down
5 changes: 0 additions & 5 deletions src/events/eventActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { ZulipVersion } from '../utils/zulipVersion';
import { tryFetch, fetchPrivateMessages } from '../message/fetchActions';
import { MIN_RECENTPMS_SERVER_VERSION } from '../pm-conversations/pmConversationsModel';
import { sendOutbox } from '../outbox/outboxActions';
import { initNotifications } from '../notification/notifTokens';
import { kNextMinSupportedVersion } from '../common/ServerCompatBanner';

const registerStart = (): PerAccountAction => ({
Expand Down Expand Up @@ -320,8 +319,4 @@ export const deadQueue = (): ThunkAction<Promise<void>> => async (dispatch, getS

// TODO(#3881): Lots of issues with outbox sending
dispatch(sendOutbox());

// TODO: Remove this. No need to do this on DEAD_QUEUE or ACCOUNT_SWITCH:
// https://chat.zulip.org/#narrow/stream/48-mobile/topic/.60remoteNotificationsRegistered.60.20listener.20too.20late/near/1148915
dispatch(initNotifications());
};

0 comments on commit b752b7a

Please sign in to comment.