2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Allow inserting links with custom text.

Fixes #4737.
This commit is contained in:
John Preston
2018-05-26 17:58:21 +03:00
parent cca46448fe
commit 07d8dafa5e
13 changed files with 603 additions and 97 deletions

View File

@@ -9,6 +9,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/abstract_box.h"
namespace Window {
class Controller;
} // namespace Window
namespace Data {
class Media;
} // namespace Data
@@ -19,7 +23,10 @@ class InputField;
class EditCaptionBox : public BoxContent, public RPCSender {
public:
EditCaptionBox(QWidget*, not_null<HistoryItem*> item);
EditCaptionBox(
QWidget*,
not_null<Window::Controller*> controller,
not_null<HistoryItem*> item);
protected:
void prepare() override;
@@ -41,6 +48,7 @@ private:
int errorTopSkip() const;
not_null<Window::Controller*> _controller;
FullMsgId _msgId;
bool _animated = false;
bool _photo = false;