Show user display name on join events

This commit is contained in:
Noah 2023-06-12 18:16:27 -07:00
parent 50d7aea39d
commit 92f1e7ba04
2 changed files with 6 additions and 1 deletions

View File

@ -872,6 +872,9 @@ const app = Vue.createApp({
} }
return ""; return "";
}, },
isUsernameOnline(username) {
return this.whoMap[username] != undefined;
},
avatarForUsername(username) { avatarForUsername(username) {
if (this.whoMap[username] != undefined && this.whoMap[username].avatar) { if (this.whoMap[username] != undefined && this.whoMap[username].avatar) {
return this.avatarURL(this.whoMap[username]); return this.avatarURL(this.whoMap[username]);

View File

@ -747,7 +747,9 @@
</figure> </figure>
</div> </div>
<div class="column"> <div class="column">
<strong>[[ msg.username ]]</strong> [[msg.message]] <strong>[[ nicknameForUsername(msg.username) ]]</strong>
<small v-if="isUsernameOnline(msg.username)" class="ml-1">(@[[msg.username]])</small>
[[msg.message]]
</div> </div>
</div> </div>