fix: opening a usercard from /live no longer makes failing ivr API call (#5959)
Fixes #5878
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
- Bugfix: Fixed announcements not showing up in mentions tab. (#5857)
|
- Bugfix: Fixed announcements not showing up in mentions tab. (#5857)
|
||||||
- Bugfix: Fixed the reply button showing for inline whispers and announcements. (#5863)
|
- Bugfix: Fixed the reply button showing for inline whispers and announcements. (#5863)
|
||||||
- Bugfix: Fixed suspicious user treatment update messages not being searchable. (#5865)
|
- Bugfix: Fixed suspicious user treatment update messages not being searchable. (#5865)
|
||||||
|
- Bugfix: Fixed user info popup's opened from `/live` making some network requests that always failed. (#5959)
|
||||||
- Bugfix: Ensure miniaudio backend exits even if it doesn't exit cleanly. (#5896)
|
- Bugfix: Ensure miniaudio backend exits even if it doesn't exit cleanly. (#5896)
|
||||||
- Bugfix: Fixed search in emote popup not always working correctly. (#5946)
|
- Bugfix: Fixed search in emote popup not always working correctly. (#5946)
|
||||||
- Bugfix: Fixed channel point redemptions with messages not showing up if PubSub is disconnected. (#5948)
|
- Bugfix: Fixed channel point redemptions with messages not showing up if PubSub is disconnected. (#5948)
|
||||||
|
|||||||
@@ -945,44 +945,50 @@ void UserInfoPopup::updateUserData()
|
|||||||
this->ui_.block->setEnabled(true);
|
this->ui_.block->setEnabled(true);
|
||||||
this->ui_.ignoreHighlights->setChecked(isIgnoringHighlights);
|
this->ui_.ignoreHighlights->setChecked(isIgnoringHighlights);
|
||||||
|
|
||||||
// get followage and subage
|
auto type = this->underlyingChannel_->getType();
|
||||||
getIvr()->getSubage(
|
|
||||||
this->userName_, this->underlyingChannel_->getName(),
|
|
||||||
[this, hack](const IvrSubage &subageInfo) {
|
|
||||||
if (!hack.lock())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!subageInfo.followingSince.isEmpty())
|
if (type == Channel::Type::Twitch)
|
||||||
{
|
{
|
||||||
QDateTime followedAt = QDateTime::fromString(
|
// get followage and subage
|
||||||
subageInfo.followingSince, Qt::ISODate);
|
getIvr()->getSubage(
|
||||||
QString followingSince = followedAt.toString("yyyy-MM-dd");
|
this->userName_, this->underlyingChannel_->getName(),
|
||||||
this->ui_.followageLabel->setText("❤ Following since " +
|
[this, hack](const IvrSubage &subageInfo) {
|
||||||
followingSince);
|
if (!hack.lock())
|
||||||
}
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (subageInfo.isSubHidden)
|
if (!subageInfo.followingSince.isEmpty())
|
||||||
{
|
{
|
||||||
this->ui_.subageLabel->setText(
|
QDateTime followedAt = QDateTime::fromString(
|
||||||
"Subscription status hidden");
|
subageInfo.followingSince, Qt::ISODate);
|
||||||
}
|
QString followingSince =
|
||||||
else if (subageInfo.isSubbed)
|
followedAt.toString("yyyy-MM-dd");
|
||||||
{
|
this->ui_.followageLabel->setText("❤ Following since " +
|
||||||
this->ui_.subageLabel->setText(
|
followingSince);
|
||||||
QString("★ Tier %1 - Subscribed for %2 months")
|
}
|
||||||
.arg(subageInfo.subTier)
|
|
||||||
.arg(subageInfo.totalSubMonths));
|
if (subageInfo.isSubHidden)
|
||||||
}
|
{
|
||||||
else if (subageInfo.totalSubMonths)
|
this->ui_.subageLabel->setText(
|
||||||
{
|
"Subscription status hidden");
|
||||||
this->ui_.subageLabel->setText(
|
}
|
||||||
QString("★ Previously subscribed for %1 months")
|
else if (subageInfo.isSubbed)
|
||||||
.arg(subageInfo.totalSubMonths));
|
{
|
||||||
}
|
this->ui_.subageLabel->setText(
|
||||||
},
|
QString("★ Tier %1 - Subscribed for %2 months")
|
||||||
[] {});
|
.arg(subageInfo.subTier)
|
||||||
|
.arg(subageInfo.totalSubMonths));
|
||||||
|
}
|
||||||
|
else if (subageInfo.totalSubMonths)
|
||||||
|
{
|
||||||
|
this->ui_.subageLabel->setText(
|
||||||
|
QString("★ Previously subscribed for %1 months")
|
||||||
|
.arg(subageInfo.totalSubMonths));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
[] {});
|
||||||
|
}
|
||||||
|
|
||||||
// get pronouns
|
// get pronouns
|
||||||
if (getSettings()->showPronouns)
|
if (getSettings()->showPronouns)
|
||||||
|
|||||||
Reference in New Issue
Block a user