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

Allow showing chat members in a special section.

This commit is contained in:
John Preston
2017-11-17 17:23:36 +04:00
parent 747ebd2136
commit bef87c6dff
18 changed files with 562 additions and 263 deletions

View File

@@ -23,6 +23,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include <rpl/flatten_latest.h>
#include <rpl/combine.h>
#include "info/profile/info_profile_widget.h"
#include "info/profile/info_profile_members.h"
#include "info/profile/info_profile_values.h"
#include "info/media/info_media_widget.h"
#include "info/info_content_widget.h"
@@ -39,6 +40,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "window/window_controller.h"
#include "window/window_slide_animation.h"
#include "window/window_peer_menu.h"
#include "boxes/peer_list_box.h"
#include "auth_session.h"
#include "mainwidget.h"
#include "lang/lang_keys.h"
@@ -261,6 +263,7 @@ void WrapWidget::forceContentRepaint() {
// }
// break;
// case Section::Type::CommonGroups:
// case Section::Type::Members:
// setupTabs(Tab::None);
// break;
// }
@@ -482,7 +485,8 @@ void WrapWidget::createTopBarOverride(SelectedItems &&items) {
bool WrapWidget::requireTopBarSearch() const {
if (!_controller->searchFieldController()) {
return false;
} else if (_controller->wrap() == Wrap::Layer) {
} else if (_controller->wrap() == Wrap::Layer
|| _controller->section().type() == Section::Type::Profile) {
return false;
} else if (hasStackHistory()) {
return true;