Fixed typos

pull/717/head
Vincent 6 years ago
parent 6a4df71421
commit 6b577915a0

@ -10,13 +10,13 @@
initialize() {}, initialize() {},
render() { render() {
this.toastView = new Whisper.ReactWrapperView({ this.dialogView = new Whisper.ReactWrapperView({
className: 'app-loading-wrapper', className: 'app-loading-wrapper',
Component: window.Signal.Components.ConversationLoadingScreen, Component: window.Signal.Components.ConversationLoadingScreen,
props: this.props, props: this.props,
}); });
this.$el.append(this.toastView.el); this.$el.append(this.dialogView.el);
}, },
}); });
})(); })();

@ -24,7 +24,7 @@
const id = `conversation-${conversation.cid}`; const id = `conversation-${conversation.cid}`;
const container = $('#main-view .conversation-stack'); const container = $('#main-view .conversation-stack');
// Has been opened since app sart, but not focussed // Has been opened since app start, but not focussed
const conversationExists = container.children(`#${id}`).length > 0; const conversationExists = container.children(`#${id}`).length > 0;
// Is focussed // Is focussed
const conversationOpened = container.children().first().id === id; const conversationOpened = container.children().first().id === id;

@ -141,7 +141,7 @@ export class AddServerDialog extends React.Component<Props, State> {
const connectionResult = this.attemptConnection(serverURL, channelId); const connectionResult = this.attemptConnection(serverURL, channelId);
// Give 10s maximum for promise to revole. Else, throw error. // Give 10s maximum for promise to resolve. Else, throw error.
const maxConnectionDuration = 10000; const maxConnectionDuration = 10000;
const connectionTimeout = setTimeout(() => { const connectionTimeout = setTimeout(() => {
if (!this.state.success) { if (!this.state.success) {

Loading…
Cancel
Save