refactor: Make ChatterinoBadges less of a singleton (#5103)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "providers/chatterino/ChatterinoBadges.hpp"
|
||||
|
||||
namespace chatterino::mock {
|
||||
|
||||
class ChatterinoBadges : public IChatterinoBadges
|
||||
{
|
||||
public:
|
||||
std::optional<EmotePtr> getBadge(const UserId &id) override
|
||||
{
|
||||
(void)id;
|
||||
return std::nullopt;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace chatterino::mock
|
||||
@@ -134,7 +134,7 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ChatterinoBadges *getChatterinoBadges() override
|
||||
IChatterinoBadges *getChatterinoBadges() override
|
||||
{
|
||||
assert(false && "EmptyApplication::getChatterinoBadges was called "
|
||||
"without being initialized");
|
||||
|
||||
Reference in New Issue
Block a user