mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fix: capture channelId by value instead of ref
This commit is contained in:
parent
e326ce428c
commit
d2681a0b43
|
@ -1149,7 +1149,7 @@ std::optional<QString> TwitchIrcServer::getOrPopulateChannelCache(
|
||||||
const auto cache = this->channelNamesById_.access();
|
const auto cache = this->channelNamesById_.access();
|
||||||
cache->put(user.id, user.displayName);
|
cache->put(user.id, user.displayName);
|
||||||
},
|
},
|
||||||
[this, &channelId] {
|
[this, channelId] {
|
||||||
const auto cache = this->channelNamesById_.access();
|
const auto cache = this->channelNamesById_.access();
|
||||||
if (cache->exists(channelId) && cache->get(channelId).isEmpty())
|
if (cache->exists(channelId) && cache->get(channelId).isEmpty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue