fix: exception while logging out
This commit is contained in:
+37
-33
@@ -4383,39 +4383,7 @@
|
|||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
this.state = {
|
this.state = this.getInitialState();
|
||||||
connected: false,
|
|
||||||
transport: null,
|
|
||||||
serverAddress: detectServerAddress(),
|
|
||||||
sidePanelSelected: 'login',
|
|
||||||
sidePanelTitle: null,
|
|
||||||
sidePanelAvatar: null,
|
|
||||||
dialogSelected: null,
|
|
||||||
contextMenuVisible: false,
|
|
||||||
login: '',
|
|
||||||
password: '',
|
|
||||||
myUserId: null,
|
|
||||||
errorText: '',
|
|
||||||
errorLevel: null,
|
|
||||||
liveConnection: navigator.onLine,
|
|
||||||
topicSelected: '',
|
|
||||||
topicSelectedOnline: false,
|
|
||||||
topicSelectedAcs: null,
|
|
||||||
loginDisabled: false,
|
|
||||||
displayMobile: (window.innerWidth <= MEDIA_BREAKPOINT),
|
|
||||||
showInfoPanel: false,
|
|
||||||
infoPanelShowMembers: false,
|
|
||||||
mobilePanel: 'sidepanel',
|
|
||||||
contextMenuVisible: false,
|
|
||||||
contextMenuBounds: null,
|
|
||||||
contextMenuClickAt: null,
|
|
||||||
contextMenuParams: null,
|
|
||||||
contextMenuItems: [],
|
|
||||||
serverVersion: 'no connection',
|
|
||||||
contactsSearchQuery: '',
|
|
||||||
foundContacts: [],
|
|
||||||
credMethod: ''
|
|
||||||
};
|
|
||||||
|
|
||||||
this.handleResize = this.handleResize.bind(this);
|
this.handleResize = this.handleResize.bind(this);
|
||||||
this.handleHashRoute = this.handleHashRoute.bind(this);
|
this.handleHashRoute = this.handleHashRoute.bind(this);
|
||||||
@@ -4464,6 +4432,42 @@
|
|||||||
this.handleValidateCredentialsRequest = this.handleValidateCredentialsRequest.bind(this);
|
this.handleValidateCredentialsRequest = this.handleValidateCredentialsRequest.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getInitialState() {
|
||||||
|
return {
|
||||||
|
connected: false,
|
||||||
|
transport: null,
|
||||||
|
serverAddress: detectServerAddress(),
|
||||||
|
sidePanelSelected: 'login',
|
||||||
|
sidePanelTitle: null,
|
||||||
|
sidePanelAvatar: null,
|
||||||
|
dialogSelected: null,
|
||||||
|
contextMenuVisible: false,
|
||||||
|
login: '',
|
||||||
|
password: '',
|
||||||
|
myUserId: null,
|
||||||
|
errorText: '',
|
||||||
|
errorLevel: null,
|
||||||
|
liveConnection: navigator.onLine,
|
||||||
|
topicSelected: '',
|
||||||
|
topicSelectedOnline: false,
|
||||||
|
topicSelectedAcs: null,
|
||||||
|
loginDisabled: false,
|
||||||
|
displayMobile: (window.innerWidth <= MEDIA_BREAKPOINT),
|
||||||
|
showInfoPanel: false,
|
||||||
|
infoPanelShowMembers: false,
|
||||||
|
mobilePanel: 'sidepanel',
|
||||||
|
contextMenuVisible: false,
|
||||||
|
contextMenuBounds: null,
|
||||||
|
contextMenuClickAt: null,
|
||||||
|
contextMenuParams: null,
|
||||||
|
contextMenuItems: [],
|
||||||
|
serverVersion: 'no connection',
|
||||||
|
contactsSearchQuery: '',
|
||||||
|
foundContacts: [],
|
||||||
|
credMethod: ''
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
var instance = this;
|
var instance = this;
|
||||||
window.addEventListener('resize', this.handleResize);
|
window.addEventListener('resize', this.handleResize);
|
||||||
|
|||||||
Reference in New Issue
Block a user