Commit 7d74319e authored by JC Brand's avatar JC Brand

Fixes #1356

parent aa3cbaa3
...@@ -8,12 +8,14 @@ ...@@ -8,12 +8,14 @@
- Add a new `converse-pubsub` plugin, for generic PubSub operations - Add a new `converse-pubsub` plugin, for generic PubSub operations
- #1180 It's now possible to use OMEMO in a MUC (if it's members-only and non-anonymous) - #1180 It's now possible to use OMEMO in a MUC (if it's members-only and non-anonymous)
- #1353 Message Delivery Receipts not working because of the message "type" attribute - #1353 Message Delivery Receipts not working because of the message "type" attribute
- #1356 Make triangle icon usable
- #1374 Can't load embedded chat when changing `view_mode` between page reloads - #1374 Can't load embedded chat when changing `view_mode` between page reloads
- #1376 Fixed some alignment issues in the sidebar - #1376 Fixed some alignment issues in the sidebar
- #1378 Message Delivery Receipts were being sent for carbons and own messages - #1378 Message Delivery Receipts were being sent for carbons and own messages
- #1379 MUC unread messages indicator is failing - #1379 MUC unread messages indicator is failing
- #1382 Message Delivery Receipts: Set store hint and type='chat' - #1382 Message Delivery Receipts: Set store hint and type='chat'
## 4.0.6 (2018-12-07) ## 4.0.6 (2018-12-07)
- Updated translations: ar, cs, de, es, eu, fr, gl, hu, id, it, ja, nb, pt_BR - Updated translations: ar, cs, de, es, eu, fr, gl, hu, id, it, ja, nb, pt_BR
......
...@@ -48985,7 +48985,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_0__["default"].plugins ...@@ -48985,7 +48985,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_0__["default"].plugins
ev.preventDefault(); ev.preventDefault();
} }
const icon_el = ev.target.querySelector('.fa'); const icon_el = ev.target.matches('.fa') ? ev.target : ev.target.querySelector('.fa');
if (u.hasClass('fa-caret-down', icon_el)) { if (u.hasClass('fa-caret-down', icon_el)) {
u.slideIn(this.el.querySelector('.bookmarks')); u.slideIn(this.el.querySelector('.bookmarks'));
...@@ -58913,7 +58913,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_0__["default"].plugins ...@@ -58913,7 +58913,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_0__["default"].plugins
ev.preventDefault(); ev.preventDefault();
} }
const icon_el = ev.target.querySelector('.fa'); const icon_el = ev.target.matches('.fa') ? ev.target : ev.target.querySelector('.fa');
if (icon_el.classList.contains("fa-caret-down")) { if (icon_el.classList.contains("fa-caret-down")) {
u.slideIn(this.el.querySelector('.open-rooms-list')).then(() => { u.slideIn(this.el.querySelector('.open-rooms-list')).then(() => {
...@@ -59748,7 +59748,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins ...@@ -59748,7 +59748,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins
ev.preventDefault(); ev.preventDefault();
} }
const icon_el = ev.target.querySelector('.fa'); const icon_el = ev.target.matches('.fa') ? ev.target : ev.target.querySelector('.fa');
if (_.includes(icon_el.classList, "fa-caret-down")) { if (_.includes(icon_el.classList, "fa-caret-down")) {
this.model.save({ this.model.save({
...@@ -507,7 +507,7 @@ converse.plugins.add('converse-bookmarks', { ...@@ -507,7 +507,7 @@ converse.plugins.add('converse-bookmarks', {
toggleBookmarksList (ev) { toggleBookmarksList (ev) {
if (ev && ev.preventDefault) { ev.preventDefault(); } if (ev && ev.preventDefault) { ev.preventDefault(); }
const icon_el = ev.target.querySelector('.fa'); const icon_el = ev.target.matches('.fa') ? ev.target : ev.target.querySelector('.fa');
if (u.hasClass('fa-caret-down', icon_el)) { if (u.hasClass('fa-caret-down', icon_el)) {
u.slideIn(this.el.querySelector('.bookmarks')); u.slideIn(this.el.querySelector('.bookmarks'));
this.list_model.save({'toggle-state': _converse.CLOSED}); this.list_model.save({'toggle-state': _converse.CLOSED});
......
...@@ -245,7 +245,7 @@ converse.plugins.add('converse-roomslist', { ...@@ -245,7 +245,7 @@ converse.plugins.add('converse-roomslist', {
toggleRoomsList (ev) { toggleRoomsList (ev) {
if (ev && ev.preventDefault) { ev.preventDefault(); } if (ev && ev.preventDefault) { ev.preventDefault(); }
const icon_el = ev.target.querySelector('.fa'); const icon_el = ev.target.matches('.fa') ? ev.target : ev.target.querySelector('.fa');
if (icon_el.classList.contains("fa-caret-down")) { if (icon_el.classList.contains("fa-caret-down")) {
u.slideIn(this.el.querySelector('.open-rooms-list')).then(() => { u.slideIn(this.el.querySelector('.open-rooms-list')).then(() => {
this.list_model.save({'toggle-state': _converse.CLOSED}); this.list_model.save({'toggle-state': _converse.CLOSED});
......
...@@ -688,7 +688,7 @@ converse.plugins.add('converse-rosterview', { ...@@ -688,7 +688,7 @@ converse.plugins.add('converse-rosterview', {
async toggle (ev) { async toggle (ev) {
if (ev && ev.preventDefault) { ev.preventDefault(); } if (ev && ev.preventDefault) { ev.preventDefault(); }
const icon_el = ev.target.querySelector('.fa'); const icon_el = ev.target.matches('.fa') ? ev.target : ev.target.querySelector('.fa');
if (_.includes(icon_el.classList, "fa-caret-down")) { if (_.includes(icon_el.classList, "fa-caret-down")) {
this.model.save({state: _converse.CLOSED}); this.model.save({state: _converse.CLOSED});
await this.collapse(); await this.collapse();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment