From 97fef8453fbe3265828d1de52e8cbd24c94096d7 Mon Sep 17 00:00:00 2001 From: vyneer Date: Mon, 25 Dec 2023 05:03:48 +0300 Subject: [PATCH] fix: gift recipients being lowercase --- .../messages/subscriptions/ChatGiftedSubscriptionMessage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/chat/js/messages/subscriptions/ChatGiftedSubscriptionMessage.js b/assets/chat/js/messages/subscriptions/ChatGiftedSubscriptionMessage.js index 07be0899..f3d662f5 100644 --- a/assets/chat/js/messages/subscriptions/ChatGiftedSubscriptionMessage.js +++ b/assets/chat/js/messages/subscriptions/ChatGiftedSubscriptionMessage.js @@ -22,7 +22,7 @@ export default class ChatGiftedSubscriptionMessage extends ChatSubscriptionMessa }; }, {}); - attributes['data-giftee'] = this.giftee.username.toLowerCase(); + attributes['data-giftee'] = this.giftee.username; message.querySelector('.subscription-icon').classList.add('gift'); @@ -33,7 +33,7 @@ export default class ChatGiftedSubscriptionMessage extends ChatSubscriptionMessa const gifteeColorFlair = usernameColorFlair(chat.flairs, this.giftee); giftee.classList.add(gifteeColorFlair?.name); - giftee.innerText = this.giftee.username; + giftee.innerText = this.giftee.displayName; const subscriptionInfo = message.querySelector('.event-info'); const user = message.querySelector('.user');