This commit is contained in:
JC Brand 2019-12-03 10:55:46 +01:00
parent f1e1e538b6
commit 9bff567b3c
4 changed files with 16 additions and 8 deletions

View File

@ -18,7 +18,8 @@
- #129: Add support for [XEP-0156: Disovering Alternative XMPP Connection Methods](https://xmpp.org/extensions/xep-0156.html). Only XML is supported for now.
- #1105: Preliminary support for storing persistent data in IndexedDB instead of localStorage
- #1691: Fix `collection.chatbox is undefined` errors
- #1772 `_converse.api.contact.add(jid, nick)` fails, says not a function
- #1772: `_converse.api.contact.add(jid, nick)` fails, says not a function
- #1796: Don't show "back" arrow navigation (on mobile) in the chat header when in `singleton` mode
### Breaking changes

View File

@ -1038,12 +1038,15 @@ converse.plugins.add('converse-muc-views', {
}));
},
/**
* Callback method that gets called after the chat has become visible.
* @private
* @method _converse.ChatRoomView#afterShown
*/
afterShown () {
/* Override from converse-chatview, specifically to avoid
* the 'active' chat state from being sent out prematurely.
*
* This is instead done in `onConnectionStatusChanged` below.
*/
// Override from converse-chatview, specifically to avoid
// the 'active' chat state from being sent out prematurely.
// This is instead done in `onConnectionStatusChanged` below.
if (u.isPersistableModel(this.model)) {
this.model.clearUnreadMsgCounter();
}

View File

@ -1,5 +1,7 @@
<div class="chat-head chat-head-chatbox row no-gutters">
<div class="chatbox-navback"><i class="fa fa-arrow-left"></i></div>
{[ if (!o._converse.singleton) { ]}
<div class="chatbox-navback"><i class="fa fa-arrow-left"></i></div>
{[ } ]}
<div class="chatbox-title">
<div class="row no-gutters">
{[ if (o.type !== o._converse.HEADLINES_TYPE) { ]}

View File

@ -1,4 +1,6 @@
<div class="chatbox-navback"><i class="fa fa-arrow-left"></i></div>
{[ if (!o._converse.singleton) { ]}
<div class="chatbox-navback"><i class="fa fa-arrow-left"></i></div>
{[ } ]}
<div class="chatbox-title">
<div class="chat-title" {[ if (o._converse.locked_muc_domain !== 'hidden') { ]} title="{{{o.jid}}}" {[ } ]} >
{{{ o.title }}}