From 3615c421c19f3af7d5dcdd522a2f696ac52d6c19 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 11 Jul 2026 13:40:42 +0400 Subject: [PATCH] Show empty article toast before premium wall on send. --- Telegram/SourceFiles/iv/editor/iv_editor_session.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/iv/editor/iv_editor_session.cpp b/Telegram/SourceFiles/iv/editor/iv_editor_session.cpp index 9776494eae..d886f886a0 100644 --- a/Telegram/SourceFiles/iv/editor/iv_editor_session.cpp +++ b/Telegram/SourceFiles/iv/editor/iv_editor_session.cpp @@ -934,6 +934,10 @@ private: showAttachmentFailedToast(); return false; } + if (_state->articleEmpty()) { + showEmptySubmittedPageToast(); + return false; + } auto simple = SerializeAsSimple(_state->richPage(), _session); const auto weak = base::make_weak(this); const auto withPaymentApproved = [weak](int approved) {