Don't show minimized chats when logged out
This commit is contained in:
parent
0950555b49
commit
f40a8f69ae
@ -7,6 +7,7 @@
|
|||||||
- #2629: OMEMO button tooltip is wrong in private chat
|
- #2629: OMEMO button tooltip is wrong in private chat
|
||||||
- #2633: Excessive logging of warning
|
- #2633: Excessive logging of warning
|
||||||
- #2634: Image previews not loading when not serving Converse locally
|
- #2634: Image previews not loading when not serving Converse locally
|
||||||
|
- Bugfix: Don't show minimized chats when logged out
|
||||||
|
|
||||||
## 8.0.0 (2021-09-03)
|
## 8.0.0 (2021-09-03)
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ export default () => {
|
|||||||
const connection = _converse?.connection;
|
const connection = _converse?.connection;
|
||||||
const logged_out = !connection?.connected || !connection?.authenticated || connection?.disconnecting;
|
const logged_out = !connection?.connected || !connection?.authenticated || connection?.disconnecting;
|
||||||
return html`
|
return html`
|
||||||
${view_mode === 'overlayed' ? html`<converse-minimized-chats></converse-minimized-chats>` : ''}
|
${!logged_out && view_mode === 'overlayed' ? html`<converse-minimized-chats></converse-minimized-chats>` : ''}
|
||||||
${repeat(chatboxes.filter(shouldShowChat), m => m.get('jid'), m => {
|
${repeat(chatboxes.filter(shouldShowChat), m => m.get('jid'), m => {
|
||||||
if (m.get('type') === CONTROLBOX_TYPE) {
|
if (m.get('type') === CONTROLBOX_TYPE) {
|
||||||
return html`
|
return html`
|
||||||
|
@ -23,6 +23,10 @@ export default class MinimizedChats extends CustomElement {
|
|||||||
this.listenTo(this.model, 'change:name', this.requestUpdate)
|
this.listenTo(this.model, 'change:name', this.requestUpdate)
|
||||||
this.listenTo(this.model, 'change:num_unread', this.requestUpdate)
|
this.listenTo(this.model, 'change:num_unread', this.requestUpdate)
|
||||||
this.listenTo(this.model, 'remove', this.requestUpdate)
|
this.listenTo(this.model, 'remove', this.requestUpdate)
|
||||||
|
|
||||||
|
this.listenTo(_converse, 'connected', this.requestUpdate);
|
||||||
|
this.listenTo(_converse, 'reconnected', this.requestUpdate);
|
||||||
|
this.listenTo(_converse, 'disconnected', this.requestUpdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
|
Loading…
Reference in New Issue
Block a user