"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/deltachat/controller.ts" 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).

controller.ts  (deltachat-desktop-1.3.3):controller.ts  (deltachat-desktop-1.3.4)
skipping to change at line 168 skipping to change at line 168
? eventStrings[_event] ? eventStrings[_event]
: String(_event) : String(_event)
if (data1 === 0) data1 = '' if (data1 === 0) data1 = ''
if (event === 'DC_EVENT_WARNING') { if (event === 'DC_EVENT_WARNING') {
logCoreEvent.warn(event, data1, data2) logCoreEvent.warn(event, data1, data2)
} else if (event === 'DC_EVENT_INFO') { } else if (event === 'DC_EVENT_INFO') {
logCoreEvent.info(event, data1, data2) logCoreEvent.info(event, data1, data2)
} else if (event.startsWith('DC_EVENT_ERROR')) { } else if (event.startsWith('DC_EVENT_ERROR')) {
this.emit('error', event, data1, data2)
logCoreEvent.error(event, data1, data2) logCoreEvent.error(event, data1, data2)
} else if (app.rc['log-debug']) { } else if (app.rc['log-debug']) {
// in debug mode log all core events // in debug mode log all core events
logCoreEvent.debug(event, data1, data2) logCoreEvent.debug(event, data1, data2)
} }
this.sendToRenderer(event, [data1, data2]) this.sendToRenderer(event, [data1, data2])
}) })
dc.on('DD_EVENT_CHATLIST_UPDATED', this.onChatListChanged.bind(this)) dc.on('DD_EVENT_CHATLIST_UPDATED', this.onChatListChanged.bind(this))
skipping to change at line 274 skipping to change at line 273
checkQrCode(qrCode: string) { checkQrCode(qrCode: string) {
return this._dc.checkQrCode(qrCode) return this._dc.checkQrCode(qrCode)
} }
joinSecurejoin(qrCode: string) { joinSecurejoin(qrCode: string) {
return new Promise(resolve => { return new Promise(resolve => {
this._dc.joinSecurejoin(qrCode, resolve) this._dc.joinSecurejoin(qrCode, resolve)
}) })
} }
stopOngoingProcess() {
this._dc.stopOngoingProcess()
}
// ToDo: Deprecated, use contacts.getContact // ToDo: Deprecated, use contacts.getContact
_getContact(id: number) { _getContact(id: number) {
const contact = this._dc.getContact(id).toJson() const contact = this._dc.getContact(id).toJson()
return { ...contact, color: integerToHexColor(contact.color) } return { ...contact, color: integerToHexColor(contact.color) }
} }
// ToDo: move to contacts. // ToDo: move to contacts.
_blockedContacts(): JsonContact[] { _blockedContacts(): JsonContact[] {
if (!this._dc) return [] if (!this._dc) return []
return this._dc.getBlockedContacts().map(this._getContact.bind(this)) return this._dc.getBlockedContacts().map(this._getContact.bind(this))
 End of changes. 2 change blocks. 
1 lines changed or deleted 4 lines changed or added

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