Show user display name on join events
This commit is contained in:
parent
50d7aea39d
commit
92f1e7ba04
|
@ -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]);
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user