Fix issue with VIPs who have Asian Language display names (#4174)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Felanbird 2022-11-21 12:58:32 -05:00 committed by GitHub
parent 82797898c1
commit 518262596a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 10 deletions

View file

@ -2,7 +2,9 @@
## Unversioned
## 2.4.0
- Bugfix: Fixed being unable to see the usercard of VIPs who have Asian language display names. (#4174)
## 2.4.0-beta
- Major: Added support for emotes, badges, and live emote updates from [7TV](https://7tv.app). [Wiki Page](https://wiki.chatterino.com/Third_party_services/#7tv) (#4002, #4062, #4090)
- Major: Added support for Right-to-Left Languages (#3958, #4139, #4168)

View file

@ -2999,18 +2999,11 @@ void CommandController::initialize(Settings &, Paths &paths)
auto messagePrefix =
QString("The VIPs of this channel are");
auto entries = QStringList();
for (const auto &vip : vipList)
{
entries.append(vip.userName);
}
entries.sort(Qt::CaseInsensitive);
// TODO: sort results?
MessageBuilder builder;
TwitchMessageBuilder::listOfUsersSystemMessage(
messagePrefix, entries, twitchChannel, &builder);
messagePrefix, vipList, twitchChannel, &builder);
channel->addMessage(builder.release());
},