"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/renderer/ScreenController.tsx" between
deltachat-desktop-1.3.3.tar.gz and deltachat-desktop-1.3.4.tar.gz

About: Delta Chat is a messanger for Desktop (Linux), IOS and Android that allows chatting over e-mail (it’s a little bit like Telegram or Whatsapp but without tracking or central control).

ScreenController.tsx  (deltachat-desktop-1.3.3):ScreenController.tsx  (deltachat-desktop-1.3.4)
skipping to change at line 62 skipping to change at line 62
if (message !== false && this.state.message === message) return // one at a time, cowgirl if (message !== false && this.state.message === message) return // one at a time, cowgirl
this.setState({ message }) this.setState({ message })
} }
userFeedbackClick() { userFeedbackClick() {
this.userFeedback(false) this.userFeedback(false)
} }
componentDidMount() { componentDidMount() {
ipcRenderer.on('error', this.onError) ipcRenderer.on('error', this.onError)
ipcRenderer.on('DC_EVENT_ERROR', this.onError)
ipcRenderer.on('DC_EVENT_LOGIN_FAILED', this.onError)
ipcRenderer.on('DC_EVENT_ERROR_NETWORK', this.onError)
ipcRenderer.on('success', this.onSuccess) ipcRenderer.on('success', this.onSuccess)
ipcRenderer.on('showAboutDialog', this.onShowAbout) ipcRenderer.on('showAboutDialog', this.onShowAbout)
ipcRenderer.on('open-url', this.onOpenUrl) ipcRenderer.on('open-url', this.onOpenUrl)
ipcRenderer.send('frontendReady') ipcRenderer.send('frontendReady')
} }
componentWillUnmount() { componentWillUnmount() {
ipcRenderer.removeListener('showAboutDialog', this.onShowAbout) ipcRenderer.removeListener('showAboutDialog', this.onShowAbout)
ipcRenderer.removeListener('error', this.onError) ipcRenderer.removeListener('error', this.onError)
ipcRenderer.removeListener('DC_EVENT_ERROR', this.onError)
ipcRenderer.removeListener('DC_EVENT_LOGIN_FAILED', this.onError)
ipcRenderer.removeListener('DC_EVENT_ERROR_NETWORK', this.onError)
ipcRenderer.removeListener('success', this.onSuccess) ipcRenderer.removeListener('success', this.onSuccess)
ipcRenderer.removeListener('open-url', this.onOpenUrl) ipcRenderer.removeListener('open-url', this.onOpenUrl)
} }
onError(_event: any, error: Error) { onError(_event: any, data1: string, data2: string) {
const tx = window.translate if (!data2) data2 = ''
const text = error ? error.toString() : tx('unknown') const text = data1 + ' ' + data2
this.userFeedback({ type: 'error', text }) this.userFeedback({ type: 'error', text })
} }
onSuccess(_event: any, text: string) { onSuccess(_event: any, text: string) {
this.userFeedback({ type: 'success', text }) this.userFeedback({ type: 'success', text })
} }
showAbout() { showAbout() {
this.openDialog('About') this.openDialog('About')
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)