Improve Twitch PubSub connection reliability (#3643)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include "messages/Image.hpp"
|
||||
#include "messages/ImageSet.hpp"
|
||||
|
||||
#include <rapidjson/document.h>
|
||||
#include <QJsonObject>
|
||||
|
||||
#define TWITCH_CHANNEL_POINT_REWARD_URL(x) \
|
||||
QString("https://static-cdn.jtvnw.net/custom-reward-images/default-%1") \
|
||||
@@ -12,14 +12,13 @@
|
||||
|
||||
namespace chatterino {
|
||||
struct ChannelPointReward {
|
||||
ChannelPointReward(rapidjson::Value &reward);
|
||||
ChannelPointReward(const QJsonObject &redemption);
|
||||
ChannelPointReward() = delete;
|
||||
QString id;
|
||||
QString channelId;
|
||||
QString title;
|
||||
int cost;
|
||||
ImageSet image;
|
||||
bool hasParsedSuccessfully = false;
|
||||
bool isUserInputRequired = false;
|
||||
|
||||
struct {
|
||||
@@ -27,9 +26,6 @@ struct ChannelPointReward {
|
||||
QString login;
|
||||
QString displayName;
|
||||
} user;
|
||||
|
||||
private:
|
||||
void parseUser(rapidjson::Value &user);
|
||||
};
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user