2021-10-14 10:17:03 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ui/rp_widget.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
struct RequestsBarContent;
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
namespace HistoryView {
|
|
|
|
|
2021-10-14 10:47:23 +00:00
|
|
|
inline constexpr auto kRecentRequestsLimit = 3;
|
|
|
|
|
2021-10-14 10:17:03 +00:00
|
|
|
[[nodiscard]] rpl::producer<Ui::RequestsBarContent> RequestsBarContentByPeer(
|
|
|
|
not_null<PeerData*> peer,
|
2022-10-24 11:52:28 +00:00
|
|
|
int userpicSize,
|
|
|
|
bool showInForum);
|
2021-10-14 10:17:03 +00:00
|
|
|
|
|
|
|
} // namespace HistoryView
|