2017-12-28 13:06:06 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-12-28 13:06:06 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-12-28 13:06:06 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2020-10-10 09:15:37 +00:00
|
|
|
#include "ui/text/text_options.h"
|
|
|
|
|
2019-09-13 06:06:02 +00:00
|
|
|
class History;
|
|
|
|
class PeerData;
|
2020-10-10 09:15:37 +00:00
|
|
|
class HistoryItem;
|
2019-09-16 11:14:06 +00:00
|
|
|
|
2017-12-28 13:06:06 +00:00
|
|
|
namespace Ui {
|
|
|
|
|
|
|
|
const TextParseOptions &ItemTextOptions(
|
|
|
|
not_null<History*> history,
|
|
|
|
not_null<PeerData*> author);
|
|
|
|
const TextParseOptions &ItemTextNoMonoOptions(
|
|
|
|
not_null<History*> history,
|
|
|
|
not_null<PeerData*> author);
|
|
|
|
const TextParseOptions &ItemTextOptions(not_null<const HistoryItem*> item);
|
|
|
|
const TextParseOptions &ItemTextNoMonoOptions(not_null<const HistoryItem*> item);
|
|
|
|
|
|
|
|
} // namespace Ui
|