mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Add general StorageFileLocation abstraction.
This commit is contained in:
@@ -440,12 +440,9 @@ void Manager::Private::showNextNotification() {
|
||||
return;
|
||||
}
|
||||
|
||||
StorageKey key;
|
||||
if (data.hideNameAndPhoto) {
|
||||
key = StorageKey(0, 0);
|
||||
} else {
|
||||
key = data.peer->userpicUniqueKey();
|
||||
}
|
||||
const auto key = data.hideNameAndPhoto
|
||||
? InMemoryKey()
|
||||
: data.peer->userpicUniqueKey();
|
||||
notification->setImage(_cachedUserpics.get(key, data.peer));
|
||||
|
||||
auto i = _notifications.find(peerId);
|
||||
|
Reference in New Issue
Block a user