mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fix: Don't attempt to put the broadcaster username at the top (#5244)
This commit is contained in:
parent
b9b1b8cf9c
commit
9d02fa14ed
|
@ -21,7 +21,7 @@
|
||||||
- Minor: Add a new completion API for experimental plugins feature. (#5000, #5047)
|
- Minor: Add a new completion API for experimental plugins feature. (#5000, #5047)
|
||||||
- Minor: Re-enabled _Restart on crash_ option on Windows. (#5012)
|
- Minor: Re-enabled _Restart on crash_ option on Windows. (#5012)
|
||||||
- Minor: The whisper highlight color can now be configured through the settings. (#5053)
|
- Minor: The whisper highlight color can now be configured through the settings. (#5053)
|
||||||
- Minor: Added an option to always include the broadcaster in user completions. This is enabled by default. (#5193)
|
- Minor: Added an option to always include the broadcaster in user completions. This is enabled by default. (#5193, #5244)
|
||||||
- Minor: Added missing periods at various moderator messages and commands. (#5061)
|
- Minor: Added missing periods at various moderator messages and commands. (#5061)
|
||||||
- Minor: Improved color selection and display. (#5057)
|
- Minor: Improved color selection and display. (#5057)
|
||||||
- Minor: Improved Streamlink documentation in the settings dialog. (#5076)
|
- Minor: Improved Streamlink documentation in the settings dialog. (#5076)
|
||||||
|
|
|
@ -67,16 +67,9 @@ void UserSource::initializeFromChannel(const Channel *channel)
|
||||||
return user.first == tc->getName();
|
return user.first == tc->getName();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (it != this->items_.end())
|
if (it == this->items_.end())
|
||||||
{
|
{
|
||||||
auto broadcaster = *it;
|
this->items_.emplace_back(tc->getName(), tc->getDisplayName());
|
||||||
this->items_.erase(it);
|
|
||||||
this->items_.insert(this->items_.begin(), broadcaster);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this->items_.insert(this->items_.begin(),
|
|
||||||
{tc->getName(), tc->getDisplayName()});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue