Commit 9bff567b authored by JC Brand's avatar JC Brand

Fixes #1796

parent f1e1e538
......@@ -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
......
......@@ -1038,12 +1038,15 @@ converse.plugins.add('converse-muc-views', {
}));
},
afterShown () {
/* Override from converse-chatview, specifically to avoid
* the 'active' chat state from being sent out prematurely.
*
* This is instead done in `onConnectionStatusChanged` below.
/**
* 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.
if (u.isPersistableModel(this.model)) {
this.model.clearUnreadMsgCounter();
}
......
<div class="chat-head chat-head-chatbox row no-gutters">
{[ 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) { ]}
......
<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 }}}
......
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