only use nickname as displayname, not nick+user
This commit is contained in:
parent
3f187e8107
commit
4635200bcb
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ async function ensureSimJoined(user, roomID) {
|
||||||
*/
|
*/
|
||||||
async function memberToStateContent(user, member, guildID) {
|
async function memberToStateContent(user, member, guildID) {
|
||||||
let displayname = user.username
|
let displayname = user.username
|
||||||
if (member.nick && member.nick !== displayname) displayname = member.nick + " | " + displayname // prepend nick if present
|
// if (member.nick && member.nick !== displayname) displayname = member.nick + " | " + displayname // prepend nick if present
|
||||||
|
if (member.nick) displayname = member.nick
|
||||||
|
|
||||||
const content = {
|
const content = {
|
||||||
displayname,
|
displayname,
|
||||||
|
|
Loading…
Reference in a new issue