Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
073c698752
@ -249,6 +249,7 @@
|
|||||||
render () {
|
render () {
|
||||||
this.el.innerHTML = tpl_chatbox_head(
|
this.el.innerHTML = tpl_chatbox_head(
|
||||||
_.extend(this.model.toJSON(), {
|
_.extend(this.model.toJSON(), {
|
||||||
|
'_converse': _converse,
|
||||||
'avatar_width': _converse.chatview_avatar_width,
|
'avatar_width': _converse.chatview_avatar_width,
|
||||||
'avatar_height': _converse.chatview_avatar_height,
|
'avatar_height': _converse.chatview_avatar_height,
|
||||||
'info_close': __('Close this chat box'),
|
'info_close': __('Close this chat box'),
|
||||||
|
@ -878,9 +878,10 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
initialize (attributes) {
|
initialize (attributes) {
|
||||||
const { jid } = attributes;
|
const { jid } = attributes,
|
||||||
const bare_jid = Strophe.getBareJidFromJid(jid).toLowerCase();
|
bare_jid = Strophe.getBareJidFromJid(jid).toLowerCase(),
|
||||||
const resource = Strophe.getResourceFromJid(jid);
|
resource = Strophe.getResourceFromJid(jid);
|
||||||
|
|
||||||
attributes.jid = bare_jid;
|
attributes.jid = bare_jid;
|
||||||
this.set(_.assignIn({
|
this.set(_.assignIn({
|
||||||
'fullname': bare_jid,
|
'fullname': bare_jid,
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<img alt="User Avatar"
|
<img alt="User Avatar"
|
||||||
class="avatar"
|
class="avatar"
|
||||||
height="{{{o.avatar_height}}}px" width="{{{o.avatar_width}}}px"
|
height="{{{o.avatar_height}}}px" width="{{{o.avatar_width}}}px"
|
||||||
src="data:{{{o.image_type}}};base64,{{{o.image}}}"/>
|
src="data:{{{o.image_type || o._converse.DEFAULT_IMAGE_TYPE}}};base64,{{{o.image || o._converse.DEFAULT_IMAGE}}}"/>
|
||||||
{[ } ]}
|
{[ } ]}
|
||||||
<div class="chat-title">
|
<div class="chat-title">
|
||||||
{[ if (o.url) { ]}
|
{[ if (o.url) { ]}
|
||||||
|
Loading…
Reference in New Issue
Block a user