Commit aa1edcdd authored by JC Brand's avatar JC Brand

Bugfix. Show custom status, not chat status.

parent ec6b1939
...@@ -512,7 +512,7 @@ ...@@ -512,7 +512,7 @@
renderStatusChangeForm: function (ev) { renderStatusChangeForm: function (ev) {
ev.preventDefault(); ev.preventDefault();
var status_message = this.model.get('status') || 'offline'; var status_message = converse.xmppstatus.get('status_message') || '';
var input = converse.templates.change_status_message({ var input = converse.templates.change_status_message({
'status_message': status_message, 'status_message': status_message,
'label_custom_status': __('Custom status'), 'label_custom_status': __('Custom status'),
......
<form id="set-custom-xmpp-status" class="pure-form"> <form id="set-custom-xmpp-status" class="pure-form">
<fieldset> <fieldset>
<span class="input-button-group"> <span class="input-button-group">
<input type="text" class="custom-xmpp-status" {{status_message}} placeholder="{{label_custom_status}}"/> <input type="text" class="custom-xmpp-status" value="{{status_message}}" placeholder="{{label_custom_status}}"/>
<input type="submit" class="pure-button button-primary" value="{{label_save}}"/> <input type="submit" class="pure-button button-primary" value="{{label_save}}"/>
</span> </span>
</fieldset> </fieldset>
......
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