From 8b887550ce7349b037b83a933b24710751b0cfb1 Mon Sep 17 00:00:00 2001 From: K900 Date: Fri, 11 Oct 2024 14:16:45 +0300 Subject: [PATCH] Update for lib_ui API change --- Telegram/SourceFiles/storage/storage_account.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/storage/storage_account.cpp b/Telegram/SourceFiles/storage/storage_account.cpp index 074812e138eed8..dd4172f70e4c0a 100644 --- a/Telegram/SourceFiles/storage/storage_account.cpp +++ b/Telegram/SourceFiles/storage/storage_account.cpp @@ -2709,7 +2709,7 @@ std::optional Account::saveRecentHashtags( auto found = false; auto m = QRegularExpressionMatch(); auto recent = getPack(); - for (auto i = 0, next = 0; (m = TextUtilities::RegExpHashtag().match(text, i)).hasMatch(); i = next) { + for (auto i = 0, next = 0; (m = TextUtilities::RegExpHashtag(false).match(text, i)).hasMatch(); i = next) { i = m.capturedStart(); next = m.capturedEnd(); if (m.hasMatch()) { @@ -2721,7 +2721,7 @@ std::optional Account::saveRecentHashtags( } } const auto tag = text.mid(i + 1, next - i - 1); - if (TextUtilities::RegExpHashtagExclude().match(tag).hasMatch()) { + if (TextUtilities::RegExpHashtagExclude(false).match(tag).hasMatch()) { continue; } if (!found