mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Move some calls from App namespace.
This commit is contained in:
@@ -23,6 +23,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "info/info_section_widget.h"
|
||||
#include "info/info_controller.h"
|
||||
#include "boxes/peer_list_box.h"
|
||||
#include "data/data_session.h"
|
||||
#include "auth_session.h"
|
||||
#include "styles/style_info.h"
|
||||
#include "styles/style_profile.h"
|
||||
|
||||
@@ -259,7 +261,7 @@ void ContentWidget::refreshSearchField(bool shown) {
|
||||
|
||||
Key ContentMemento::key() const {
|
||||
if (const auto peerId = this->peerId()) {
|
||||
return Key(App::peer(peerId));
|
||||
return Key(Auth().data().peer(peerId));
|
||||
} else if (const auto feed = this->feed()) {
|
||||
return Key(feed);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user