Friends: Use getExact in displaying singular pending requests

This commit is contained in:
Mia
2021-07-17 18:33:32 -05:00
parent 8faa194521
commit eb9fd0e8e9

View File

@@ -29,7 +29,7 @@ export const Friends = new class {
if (pendingCount < 1) return;
if (pendingCount === 1) {
const sender = [...friendRequests.received][0];
const senderName = Users.get(sender)?.name || sender;
const senderName = Users.getExact(sender)?.name || sender;
let buf = Utils.html`/uhtml sent,<button class="button" name="send" value="/friends accept ${sender}">Accept</button> | `;
buf += Utils.html`<button class="button" name="send" value="/friends reject ${sender}">Deny</button><br /> `;
buf += `<small>(You can also stop this user from sending you friend requests with <code>/ignore</code>)</small>`;