mirror of https://github.com/procxx/kepka.git
Clean up formatting
This commit is contained in:
parent
f09feaf8b1
commit
16aea1439a
|
@ -34,9 +34,12 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
|||
#include "storage/file_download.h"
|
||||
#include "window/themes/window_theme.h"
|
||||
|
||||
PeerListBox::PeerListBox(QWidget*, std::unique_ptr<PeerListController> controller, base::lambda<void(not_null<PeerListBox*>)> init)
|
||||
: _controller(std::move(controller))
|
||||
, _init(std::move(init)) {
|
||||
PeerListBox::PeerListBox(QWidget*
|
||||
, std::unique_ptr<PeerListController> controller
|
||||
, base::lambda<void(not_null<PeerListBox*>)> init)
|
||||
: _controller(std::move(controller))
|
||||
, _init(std::move(init))
|
||||
{
|
||||
Expects(_controller != nullptr);
|
||||
}
|
||||
|
||||
|
|
|
@ -49,9 +49,11 @@ QString getButtonText(MediaOverviewType type, int count) {
|
|||
|
||||
} // namespace
|
||||
|
||||
SharedMediaWidget::SharedMediaWidget(QWidget *parent, PeerData *peer) : BlockWidget(parent, peer, lang(lng_profile_shared_media))
|
||||
, _history(App::history(peer))
|
||||
, _migrated(_history->migrateFrom()) {
|
||||
SharedMediaWidget::SharedMediaWidget(QWidget *parent, PeerData *peer)
|
||||
: BlockWidget(parent, peer, lang(lng_profile_shared_media))
|
||||
, _history(App::history(peer))
|
||||
, _migrated(_history->migrateFrom())
|
||||
{
|
||||
auto observeEvents = Notify::PeerUpdate::Flag::SharedMediaChanged
|
||||
| Notify::PeerUpdate::Flag::UserCommonChatsChanged;
|
||||
subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(observeEvents, [this](const Notify::PeerUpdate &update) {
|
||||
|
|
Loading…
Reference in New Issue