Show nickname in status if fullname is not provided
This commit is contained in:
parent
d5deed0871
commit
72be204f77
|
@ -21,7 +21,7 @@ function tpl_user_settings_button (o) {
|
|||
|
||||
export default (el) => {
|
||||
const chat_status = el.model.get('status') || 'offline';
|
||||
const fullname = el.model.vcard?.get('fullname') || _converse.bare_jid;
|
||||
const fullname = el.model.vcard?.get('fullname') || el.model.vcard?.get('nickname') || _converse.bare_jid;
|
||||
const status_message = el.model.get('status_message') || __("I am %1$s", getPrettyStatus(chat_status));
|
||||
const i18n_change_status = __('Click to change your chat status');
|
||||
const show_settings_button = api.settings.get('show_client_info') || api.settings.get('allow_adhoc_commands');
|
||||
|
|
Loading…
Reference in New Issue
Block a user