Don't show minimized chats when logged out

This commit is contained in:
JC Brand 2021-09-06 22:08:10 +02:00
parent 0950555b49
commit f40a8f69ae
3 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@
- #2629: OMEMO button tooltip is wrong in private chat
- #2633: Excessive logging of warning
- #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)

View File

@ -16,7 +16,7 @@ export default () => {
const connection = _converse?.connection;
const logged_out = !connection?.connected || !connection?.authenticated || connection?.disconnecting;
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 => {
if (m.get('type') === CONTROLBOX_TYPE) {
return html`

View File

@ -23,6 +23,10 @@ export default class MinimizedChats extends CustomElement {
this.listenTo(this.model, 'change:name', this.requestUpdate)
this.listenTo(this.model, 'change:num_unread', 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 () {