mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
docs: explain getOrPopulateChannelCache
This commit is contained in:
parent
64ccef94d1
commit
e87302ca2d
2 changed files with 6 additions and 1 deletions
|
@ -2759,7 +2759,7 @@ void MessageBuilder::appendTwitchBadges(const QVariantMap &tags,
|
|||
|
||||
if (this->message().flags.has(MessageFlag::SharedMessage))
|
||||
{
|
||||
QString sourceId = tags["source-room-id"].toString();
|
||||
const QString sourceId = tags["source-room-id"].toString();
|
||||
std::optional<QString> sourceName;
|
||||
if (twitchChannel->roomId() == sourceId)
|
||||
{
|
||||
|
|
|
@ -100,6 +100,11 @@ public:
|
|||
std::shared_ptr<Channel> getChannelOrEmptyByID(
|
||||
const QString &channelID) override;
|
||||
|
||||
/**
|
||||
* Obtains the channel login name associated with the passed ID,
|
||||
* so that Shared Chat messages can provide source channel context.
|
||||
* Can yield an empty string if a helix request is already in-flight.
|
||||
*/
|
||||
std::optional<QString> getOrPopulateChannelCache(
|
||||
const QString &channelId) override;
|
||||
|
||||
|
|
Loading…
Reference in a new issue