fix: notes behavior on users with no id (#6413)

This commit is contained in:
isgkm
2025-08-23 15:05:06 +02:00
committed by GitHub
parent 8392817ac5
commit bc1a87a9c8
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -1040,6 +1040,7 @@ void UserInfoPopup::updateUserData()
this->ui_.block->setChecked(isIgnoring);
this->ui_.block->setEnabled(true);
this->ui_.ignoreHighlights->setChecked(isIgnoringHighlights);
this->ui_.notesAdd->setEnabled(true);
auto type = this->underlyingChannel_->getType();
@@ -1142,6 +1143,8 @@ void UserInfoPopup::updateUserData()
this->ui_.block->setEnabled(false);
this->ui_.ignoreHighlights->setEnabled(false);
this->ui_.notesAdd->setEnabled(false);
bool isMyself =
getApp()->getAccounts()->twitch.getCurrent()->getUserName().compare(
this->userName_, Qt::CaseInsensitive) == 0;