Skip to content

Commit

Permalink
fix: use case insensitive compare
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Jun 25, 2024
1 parent fab3ac9 commit 2873425
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/notifications/NotificationController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ void NotificationController::removeChannelNotification(
{
for (size_t i = 0; i != channelMap_[p].raw().size(); i++)
{
if (channelMap_[p].raw()[i].toLower() == channelName.toLower())
if (channelMap_[p].raw()[i].compare(channelName, Qt::CaseInsensitive) ==
0)
{
channelMap_[p].removeAt(static_cast<int>(i));
i--;
Expand Down

0 comments on commit 2873425

Please sign in to comment.