mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Beta version 3.5.3: Fix build with GCC.
This commit is contained in:
@@ -231,8 +231,6 @@ void StartRtmpProcess::FillRtmpRows(
|
|||||||
const auto addButton = [&](
|
const auto addButton = [&](
|
||||||
bool key,
|
bool key,
|
||||||
rpl::producer<QString> &&text) {
|
rpl::producer<QString> &&text) {
|
||||||
const auto &padding = st::groupCallRtmpCopyButton.padding;
|
|
||||||
|
|
||||||
auto wrap = object_ptr<Ui::RpWidget>(container);
|
auto wrap = object_ptr<Ui::RpWidget>(container);
|
||||||
auto button = Ui::CreateChild<Ui::RoundButton>(
|
auto button = Ui::CreateChild<Ui::RoundButton>(
|
||||||
wrap.data(),
|
wrap.data(),
|
||||||
|
@@ -580,7 +580,6 @@ void DownloadManager::removed(not_null<const HistoryItem*> item) {
|
|||||||
auto &data = sessionData(item);
|
auto &data = sessionData(item);
|
||||||
const auto i = ranges::find(data.downloading, item, ByItem);
|
const auto i = ranges::find(data.downloading, item, ByItem);
|
||||||
Assert(i != end(data.downloading));
|
Assert(i != end(data.downloading));
|
||||||
auto &entry = *i;
|
|
||||||
|
|
||||||
// We don't want to download files without messages.
|
// We don't want to download files without messages.
|
||||||
// For example, there is no way to refresh a file reference for them.
|
// For example, there is no way to refresh a file reference for them.
|
||||||
@@ -617,7 +616,6 @@ not_null<HistoryItem*> DownloadManager::generateItem(
|
|||||||
const auto flags = MessageFlag::FakeHistoryItem;
|
const auto flags = MessageFlag::FakeHistoryItem;
|
||||||
const auto replyTo = MsgId();
|
const auto replyTo = MsgId();
|
||||||
const auto viaBotId = UserId();
|
const auto viaBotId = UserId();
|
||||||
const auto groupedId = uint64();
|
|
||||||
const auto date = base::unixtime::now();
|
const auto date = base::unixtime::now();
|
||||||
const auto postAuthor = QString();
|
const auto postAuthor = QString();
|
||||||
const auto caption = TextWithEntities();
|
const auto caption = TextWithEntities();
|
||||||
|
@@ -226,7 +226,6 @@ void Controller::updateSearchControllers(
|
|||||||
const auto hasMembersSearch = (type == Type::Members)
|
const auto hasMembersSearch = (type == Type::Members)
|
||||||
|| (type == Type::Profile);
|
|| (type == Type::Profile);
|
||||||
const auto searchQuery = memento->searchFieldQuery();
|
const auto searchQuery = memento->searchFieldQuery();
|
||||||
const auto isDownloads = (type == Type::Downloads);
|
|
||||||
if (isMedia) {
|
if (isMedia) {
|
||||||
_searchController
|
_searchController
|
||||||
= std::make_unique<Api::DelayedSearchController>(&session());
|
= std::make_unique<Api::DelayedSearchController>(&session());
|
||||||
|
@@ -837,7 +837,6 @@ void ListWidget::showContextMenu(
|
|||||||
|
|
||||||
auto link = ClickHandler::getActive();
|
auto link = ClickHandler::getActive();
|
||||||
|
|
||||||
const auto owner = &session().data();
|
|
||||||
_contextMenu = base::make_unique_q<Ui::PopupMenu>(
|
_contextMenu = base::make_unique_q<Ui::PopupMenu>(
|
||||||
this,
|
this,
|
||||||
st::popupMenuWithIcons);
|
st::popupMenuWithIcons);
|
||||||
|
@@ -536,7 +536,7 @@ void Main::keyPressEvent(QKeyEvent *e) {
|
|||||||
void Main::setupContent(not_null<Window::SessionController*> controller) {
|
void Main::setupContent(not_null<Window::SessionController*> controller) {
|
||||||
const auto content = Ui::CreateChild<Ui::VerticalLayout>(this);
|
const auto content = Ui::CreateChild<Ui::VerticalLayout>(this);
|
||||||
|
|
||||||
const auto cover = content->add(object_ptr<Cover>(
|
content->add(object_ptr<Cover>(
|
||||||
content,
|
content,
|
||||||
controller,
|
controller,
|
||||||
controller->session().user()));
|
controller->session().user()));
|
||||||
|
@@ -845,7 +845,6 @@ object_ptr<Ui::RpWidget> ForwardsPrivacyController::setupAboveWidget(
|
|||||||
}
|
}
|
||||||
state->tooltip->move(position);
|
state->tooltip->move(position);
|
||||||
};
|
};
|
||||||
auto &lifetime = state->tooltip->lifetime();
|
|
||||||
const auto watch = [&](QWidget *widget, const auto &self) -> void {
|
const auto watch = [&](QWidget *widget, const auto &self) -> void {
|
||||||
if (!widget) {
|
if (!widget) {
|
||||||
return;
|
return;
|
||||||
|
@@ -286,7 +286,6 @@ Account::ReadMapResult Account::readMapWith(
|
|||||||
quint64 savedGifsKey = 0;
|
quint64 savedGifsKey = 0;
|
||||||
quint64 legacyBackgroundKeyDay = 0, legacyBackgroundKeyNight = 0;
|
quint64 legacyBackgroundKeyDay = 0, legacyBackgroundKeyNight = 0;
|
||||||
quint64 userSettingsKey = 0, recentHashtagsAndBotsKey = 0, exportSettingsKey = 0;
|
quint64 userSettingsKey = 0, recentHashtagsAndBotsKey = 0, exportSettingsKey = 0;
|
||||||
quint64 downloadsKey = 0;
|
|
||||||
while (!map.stream.atEnd()) {
|
while (!map.stream.atEnd()) {
|
||||||
quint32 keyType;
|
quint32 keyType;
|
||||||
map.stream >> keyType;
|
map.stream >> keyType;
|
||||||
|
2
Telegram/ThirdParty/tgcalls
vendored
2
Telegram/ThirdParty/tgcalls
vendored
Submodule Telegram/ThirdParty/tgcalls updated: a5da9369d1...d20de8e8bb
Submodule Telegram/lib_ui updated: 2f425edd75...5f3e04a319
Reference in New Issue
Block a user