2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Enable story actions in channels.

This commit is contained in:
John Preston
2023-09-05 18:17:19 +04:00
parent 29c5f6b706
commit 39f8394f98
10 changed files with 142 additions and 63 deletions

View File

@@ -1016,6 +1016,23 @@ void SetupMessages(
AddSkip(inner, st::settingsCheckboxesSkip);
}
void SetupArchive(
not_null<Window::SessionController*> controller,
not_null<Ui::VerticalLayout*> container) {
AddDivider(container);
AddSkip(container);
PreloadArchiveSettings(&controller->session());
AddButton(
container,
tr::lng_context_archive_settings(),
st::settingsButton,
{ &st::menuIconArchive }
)->addClickHandler([=] {
controller->show(Box(Settings::ArchiveSettingsBox, controller));
});
}
void SetupExport(
not_null<Window::SessionController*> controller,
not_null<Ui::VerticalLayout*> container,
@@ -1737,6 +1754,7 @@ void Chat::setupContent(not_null<Window::SessionController*> controller) {
SetupChatBackground(controller, content);
SetupStickersEmoji(controller, content);
SetupMessages(controller, content);
SetupArchive(controller, content);
Ui::ResizeFitChild(this, content);
}