8532c6d3bc
This feature is off by default and can be enabled in the settings with the "Show link thumbnail" setting. This feature also requires the "Show link info when hovering" setting to be enabled. thumbnails support is only there for direct image links, twitch clips, and youtube links. can be expanded in the future in the /api repo Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
20 lines
337 B
C++
20 lines
337 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
#include <functional>
|
|
|
|
#include "messages/Image.hpp"
|
|
#include "messages/Link.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
class LinkResolver
|
|
{
|
|
public:
|
|
static void getLinkInfo(
|
|
const QString url, QObject *caller,
|
|
std::function<void(QString, Link, ImagePtr)> callback);
|
|
};
|
|
|
|
} // namespace chatterino
|