diff --git a/lib/actions/sessions.js b/lib/actions/sessions.js index 7cdf690c..e97dbcea 100644 --- a/lib/actions/sessions.js +++ b/lib/actions/sessions.js @@ -101,21 +101,10 @@ export const userExitSession = createExitAction(SESSION_USER_EXIT); export const ptyExitSession = createExitAction(SESSION_PTY_EXIT); export function setActiveSession(uid) { - return (dispatch, getState) => { - const state = getState(); - const prevUid = state.sessions.activeUid; + return dispatch => { dispatch({ type: SESSION_SET_ACTIVE, - uid, - effect() { - // This goes away when we are able to poll - // for the title ourseleves, instead of relying - // on Session and focus/blur to subscribe - if (prevUid) { - rpc.emit('blur', {uid: prevUid}); - } - rpc.emit('focus', {uid}); - } + uid }); }; }