Add chatter count to viewer list popout (#3261)

Co-authored-by: Paweł <zneix@zneix.eu>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Auro 2021-10-24 11:27:18 -04:00 committed by GitHub
parent 639bdf7f69
commit 696979e9a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -20,6 +20,7 @@
- Minor: Fixed `/streamlink` command not stripping leading @'s or #'s (#3215)
- Minor: Strip leading @ and trailing , from username in `/popout` command. (#3217)
- Minor: Added `flags.reward_message` filter variable (#3231)
- Minor: Added chatter count to viewer list popout (#3261)
- Minor: Added highlights for first messages (#3267)
- Minor: Ignore out of bounds check for tiling wms (#3270)
- Minor: Added `flags.first_message` filter variable (#3292)

View file

@ -15,6 +15,7 @@
#include "singletons/Theme.hpp"
#include "singletons/WindowManager.hpp"
#include "util/Clipboard.hpp"
#include "util/Helpers.hpp"
#include "util/NuulsUploader.hpp"
#include "util/Shortcut.hpp"
#include "util/StreamLink.hpp"
@ -744,6 +745,11 @@ void Split::showViewerList()
auto obj = result.parseJson();
QJsonObject chattersObj = obj.value("chatters").toObject();
viewerDock->setWindowTitle(
QString("Viewer List - %1 (%2 chatters)")
.arg(this->getChannel()->getName())
.arg(localizeNumbers(obj.value("chatter_count").toInt())));
loadingLabel->hide();
for (int i = 0; i < jsonLabels.size(); i++)
{