From ca15fa3a972957033f62d3b9e8b60496a6b61dfb Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 17 Aug 2017 11:16:17 +0300 Subject: [PATCH] Use sync notifications for name changes. Search index updates must be sync or it may use new values twice. --- Telegram/SourceFiles/structs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/structs.cpp b/Telegram/SourceFiles/structs.cpp index 0c809975e..7aea4ab3f 100644 --- a/Telegram/SourceFiles/structs.cpp +++ b/Telegram/SourceFiles/structs.cpp @@ -317,7 +317,7 @@ void PeerData::updateNameDelayed(const QString &newName, const QString &newNameO } } fillNames(); - Notify::peerUpdatedDelayed(update); + Notify::PeerUpdated().notify(update, true); } ClickHandlerPtr PeerData::createOpenLink() {