feat: Show FrankerFaceZ channel badges (#5119)

This commit is contained in:
pajlada
2024-02-25 12:18:57 +01:00
committed by GitHub
parent 2815c7b67d
commit 101dc82ea0
10 changed files with 127 additions and 8 deletions
+3 -2
View File
@@ -3,6 +3,7 @@
#include "common/Aliases.hpp"
#include "common/Singleton.hpp"
#include "util/QStringHash.hpp"
#include "util/ThreadGuard.hpp"
#include <QColor>
@@ -30,10 +31,9 @@ public:
};
std::vector<Badge> getUserBadges(const UserId &id);
std::optional<Badge> getBadge(int badgeID) const;
private:
std::optional<Badge> getBadge(int badgeID);
void load();
std::shared_mutex mutex_;
@@ -43,6 +43,7 @@ private:
// badges points a badge ID to the information about the badge
std::unordered_map<int, Badge> badges;
ThreadGuard tgBadges;
};
} // namespace chatterino