From 96acecc35be9e7c766986dc2be2dd0c76aa956f5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 8 Jun 2019 12:39:45 +0300 Subject: [PATCH] Remove newline in support mode message edit. --- Telegram/SourceFiles/chat_helpers/message_field.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Telegram/SourceFiles/chat_helpers/message_field.cpp b/Telegram/SourceFiles/chat_helpers/message_field.cpp index c5bc917a4..42ac3dbb3 100644 --- a/Telegram/SourceFiles/chat_helpers/message_field.cpp +++ b/Telegram/SourceFiles/chat_helpers/message_field.cpp @@ -197,9 +197,6 @@ TextWithEntities StripSupportHashtag(TextWithEntities &&text) { } ++i; } - if (!text.text.isEmpty() && !text.text.endsWith('\n')) { - text.text.append('\n'); - } return std::move(text); }