fix: don't include blocked users in join/part messages (#6181)

This commit is contained in:
pajlada
2025-05-03 11:32:55 +02:00
committed by GitHub
parent 555b921f65
commit e38c64bac3
12 changed files with 98 additions and 34 deletions
@@ -53,7 +53,7 @@ QString blockUser(const CommandContext &ctx)
[currentUser, channel{ctx.channel},
target](const HelixUser &targetUser) {
getApp()->getAccounts()->twitch.getCurrent()->blockUser(
targetUser.id, nullptr,
targetUser.id, targetUser.login, nullptr,
[channel, target, targetUser] {
channel->addSystemMessage(
QString("You successfully blocked user %1")
@@ -125,7 +125,7 @@ QString unblockUser(const CommandContext &ctx)
target,
[currentUser, channel{ctx.channel}, target](const auto &targetUser) {
getApp()->getAccounts()->twitch.getCurrent()->unblockUser(
targetUser.id, nullptr,
targetUser.id, targetUser.login, nullptr,
[channel, target, targetUser] {
channel->addSystemMessage(
QString("You successfully unblocked user %1")