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