mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
Display account name
This commit is contained in:
parent
d12e1109b3
commit
0b32d9295a
@ -138,12 +138,16 @@ export default function BufferHeader(props) {
|
||||
realname = stripANSI(props.user.realname || "");
|
||||
}
|
||||
|
||||
let mask = null;
|
||||
let details = [];
|
||||
if (props.user.username && props.user.hostname) {
|
||||
mask = `(${props.user.username}@${props.user.hostname})`;
|
||||
details.push(`${props.user.username}@${props.user.hostname}`);
|
||||
}
|
||||
if (props.user.account) {
|
||||
details.push(`authenticated as ${props.user.account}`);
|
||||
}
|
||||
details = details.length > 0 ? `(${details.join(", ")})` : null;
|
||||
|
||||
description = html`<${NickStatus} status=${status}/> ${realname} ${mask}`;
|
||||
description = html`<${NickStatus} status=${status}/> ${realname} ${details}`;
|
||||
}
|
||||
|
||||
actions = html`
|
||||
|
@ -56,6 +56,10 @@ class MemberItem extends Component {
|
||||
} else {
|
||||
title = mask;
|
||||
}
|
||||
|
||||
if (user.account) {
|
||||
title += `\nAuthenticated as ${user.account}`;
|
||||
}
|
||||
}
|
||||
|
||||
return html`
|
||||
|
Loading…
x
Reference in New Issue
Block a user