fixed some concurrency issues
This commit is contained in:
@@ -34,7 +34,9 @@ ConcurrentSettings::ConcurrentSettings()
|
||||
|
||||
bool ConcurrentSettings::isHighlightedUser(const QString &username)
|
||||
{
|
||||
for (const auto &highlightedUser : this->highlightedUsers)
|
||||
auto items = this->highlightedUsers.readOnly();
|
||||
|
||||
for (const auto &highlightedUser : *items)
|
||||
{
|
||||
if (highlightedUser.isMatch(username))
|
||||
return true;
|
||||
@@ -58,7 +60,9 @@ bool ConcurrentSettings::isBlacklistedUser(const QString &username)
|
||||
|
||||
bool ConcurrentSettings::isMutedChannel(const QString &channelName)
|
||||
{
|
||||
for (const auto &channel : this->mutedChannels)
|
||||
auto items = this->mutedChannels.readOnly();
|
||||
|
||||
for (const auto &channel : *items)
|
||||
{
|
||||
if (channelName.toLower() == channel.toLower())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user