From 79b8ed71776da4c6e8b0a38995914a7129536f41 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 2 Oct 2018 22:51:01 +0200 Subject: [PATCH] New release 4.0.2 --- CHANGES.md | 2 +- COPYRIGHT | 4 ++-- Makefile | 2 +- dist/converse-no-dependencies.js | 13 ++++++++----- docs/source/conf.py | 4 ++-- docs/source/quickstart.rst | 4 ++-- package-lock.json | 2 +- package.json | 2 +- sass/_chatbox.scss | 1 + src/converse-omemo.js | 4 ---- 10 files changed, 19 insertions(+), 19 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index ce679c8e8..5acd4b41f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,6 @@ # Changelog -## 4.0.2 (Unreleased) +## 4.0.2 (2018-10-02) - M4A and WEBM files, when sent as XEP-0066 Out of Band Data, are now playable directly in chat - Updated French and Spanish translations diff --git a/COPYRIGHT b/COPYRIGHT index 076e5671e..fc71120ac 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -2,9 +2,9 @@ * * An XMPP chat client that runs in the browser. * - * Version: 4.0.1 + * Version: 4.0.2 * - * Copyright: JC Brand 2012-2017 + * Copyright: JC Brand 2013-2018 * Except for 3rd party dependencies. * Please refer to the unminified version of this file for details. * diff --git a/Makefile b/Makefile index 8a4002d77..bb8f687c1 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ serve_bg: dev ######################################################################## ## Translation machinery -GETTEXT = xgettext --language="JavaScript" --keyword=__ --keyword=___ --from-code=UTF-8 --output=locale/converse.pot dist/converse-no-dependencies.js --package-name=Converse.js --copyright-holder="Jan-Carel Brand" --package-version=4.0.1 -c +GETTEXT = xgettext --language="JavaScript" --keyword=__ --keyword=___ --from-code=UTF-8 --output=locale/converse.pot dist/converse-no-dependencies.js --package-name=Converse.js --copyright-holder="Jan-Carel Brand" --package-version=4.0.2 -c .PHONY: pot pot: dist/converse-no-dependencies-es2015.js diff --git a/dist/converse-no-dependencies.js b/dist/converse-no-dependencies.js index db808d0a2..03fbb7744 100644 --- a/dist/converse-no-dependencies.js +++ b/dist/converse-no-dependencies.js @@ -33199,7 +33199,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ } }, setVCard: function setVCard() { - if (this.get('type') === 'groupchat') { + if (this.get('type') === 'error') { + return; + } else if (this.get('type') === 'groupchat') { this.vcard = this.getVCardForChatroomOccupant(); } else { var jid = this.get('from'); @@ -40280,7 +40282,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ 'click .chat-msg__edit-modal': 'showMessageVersionsModal' }, initialize: function initialize() { - this.model.vcard.on('change', this.render, this); + if (this.model.vcard) { + this.model.vcard.on('change', this.render, this); + } + this.model.on('change:correcting', this.onMessageCorrection, this); this.model.on('change:message', this.render, this); this.model.on('change:progress', this.renderFileUploadProgresBar, this); @@ -40334,7 +40339,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ var is_me_message = this.isMeCommand(), moment_time = moment(this.model.get('time')), - role = this.model.vcard.get('role'), + role = this.model.vcard ? this.model.vcard.get('role') : null, roles = role ? role.split(',') : []; var msg = u.stringToElement(tpl_message(_.extend(this.model.toJSON(), { '__': __, @@ -45594,7 +45599,6 @@ function _instanceof(left, right) { if (right != null && typeof Symbol !== "unde algo = { 'name': 'AES-GCM', 'iv': iv, - 'additionalData': new Uint8Array(1), 'tagLength': TAG_LENGTH }, encrypted = await crypto.subtle.encrypt(algo, key, u.stringToArrayBuffer(plaintext)), @@ -45616,7 +45620,6 @@ function _instanceof(left, right) { if (right != null && typeof Symbol !== "unde algo = { 'name': "AES-GCM", 'iv': u.base64ToArrayBuffer(obj.iv), - 'additionalData': new Uint8Array(1), 'tagLength': TAG_LENGTH }; return u.arrayBufferToString((await crypto.subtle.decrypt(algo, key_obj, cipher))); diff --git a/docs/source/conf.py b/docs/source/conf.py index 8b61464d7..326a90bfb 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -48,9 +48,9 @@ copyright = u'2018, JC Brand' # built documents. # # The short X.Y version. -version = '4.0.1' +version = '4.0.2' # The full version, including alpha/beta/rc tags. -release = '4.0.1' +release = '4.0.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/source/quickstart.rst b/docs/source/quickstart.rst index 9c65265cd..ce69e9aef 100644 --- a/docs/source/quickstart.rst +++ b/docs/source/quickstart.rst @@ -25,8 +25,8 @@ breakage when a new version is released and the above URLs load new resources. To load a specific version of Converse you can put the version in the URL, like so: -* https://cdn.conversejs.org/4.0.1/dist/converse.min.js -* https://cdn.conversejs.org/4.0.1/css/converse.min.css +* https://cdn.conversejs.org/4.0.2/dist/converse.min.js +* https://cdn.conversejs.org/4.0.2/css/converse.min.css You can include these two URLs inside the ** element of your website via the *script* and *link* tags: diff --git a/package-lock.json b/package-lock.json index e46882756..9b506f16b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "converse.js", - "version": "4.0.1", + "version": "4.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 81d337774..5ecdc7c09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "converse.js", - "version": "4.0.1", + "version": "4.0.2", "description": "Browser based XMPP chat client", "main": "dist/converse.js", "directories": { diff --git a/sass/_chatbox.scss b/sass/_chatbox.scss index 38858b250..3ae52edd8 100644 --- a/sass/_chatbox.scss +++ b/sass/_chatbox.scss @@ -620,6 +620,7 @@ overflow: hidden; } .chat-body { + height: calc(100% - #{$fullpage-chat-head-height}); background-color: $chat-head-color; border-top-left-radius: $chatbox-border-radius; border-top-right-radius: $chatbox-border-radius; diff --git a/src/converse-omemo.js b/src/converse-omemo.js index 954398e67..db9b9a03d 100644 --- a/src/converse-omemo.js +++ b/src/converse-omemo.js @@ -927,10 +927,6 @@ }); - _converse.omemo = { - - } - function fetchDeviceLists () { return new Promise((resolve, reject) => _converse.devicelists.fetch({ 'success': resolve