1
0
Fork 0

only use nickname as displayname, not nick+user

This commit is contained in:
Cadence Ember 2023-08-19 18:40:37 +12:00
parent 3f187e8107
commit 4635200bcb

View file

@ -85,7 +85,8 @@ async function ensureSimJoined(user, roomID) {
*/
async function memberToStateContent(user, member, guildID) {
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 = {
displayname,