2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Remove some more Auth() calls.

This commit is contained in:
John Preston
2020-06-08 13:06:50 +04:00
parent bede709f6b
commit 3878a1b212
67 changed files with 380 additions and 299 deletions

View File

@@ -262,8 +262,8 @@ void ContentWidget::refreshSearchField(bool shown) {
}
Key ContentMemento::key() const {
if (const auto peerId = this->peerId()) {
return Key(Auth().data().peer(peerId));
if (const auto peer = this->peer()) {
return Key(peer);
//} else if (const auto feed = this->feed()) { // #feed
// return Key(feed);
} else if (const auto poll = this->poll()) {