Fix error after leaving team (#4888)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
0a1b0d051a
Коммит
47581e6964
@@ -223,6 +223,7 @@ function handleLeaveTeamEvent(msg) {
|
|||||||
if (TeamStore.getCurrentId() === msg.data.team_id) {
|
if (TeamStore.getCurrentId() === msg.data.team_id) {
|
||||||
TeamStore.setCurrentId('');
|
TeamStore.setCurrentId('');
|
||||||
Client.setTeamId('');
|
Client.setTeamId('');
|
||||||
|
BrowserStore.removeGlobalItem('team');
|
||||||
BrowserStore.removeGlobalItem(msg.data.team_id);
|
BrowserStore.removeGlobalItem(msg.data.team_id);
|
||||||
GlobalActions.redirectUserToDefaultTeam();
|
GlobalActions.redirectUserToDefaultTeam();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ export function getMyChannelMembers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function viewChannel(channelId = ChannelStore.getCurrentId(), prevChannelId = '', time = 0) {
|
export function viewChannel(channelId = ChannelStore.getCurrentId(), prevChannelId = '', time = 0) {
|
||||||
if (channelId == null) {
|
if (channelId == null || !Client.teamId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user