From f88466a3763ee54bcb6827e994c166ce046cd031 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 10 Dec 2019 10:49:29 +0300 Subject: [PATCH] Don't refresh messages redundantly. Fixes #6781. --- Telegram/SourceFiles/history/history.cpp | 5 ----- Telegram/lib_ui | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index 808cf8525..f1a2559ce 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -594,11 +594,6 @@ HistoryItem *History::createItem( if (detachExistingItem) { result->removeMainView(); } - if (message.type() == mtpc_message) { - result->updateSentContent( - result->originalText(), - message.c_message().vmedia()); - } return result; } return HistoryItem::Create(this, message, clientFlags); diff --git a/Telegram/lib_ui b/Telegram/lib_ui index fcb44b320..604f62599 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit fcb44b320c008b21f9e168149a3ac72f68530b4c +Subproject commit 604f62599e9ee5f4d57d778ebbe9403c2a875245