mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Move all (item/view/media) maps to Data::Session.
This commit is contained in:
@@ -171,7 +171,7 @@ void PeerData::setUserpic(
|
||||
|
||||
void PeerData::setUserpicPhoto(const MTPPhoto &data) {
|
||||
auto photoId = [&]() -> PhotoId {
|
||||
if (auto photo = App::feedPhoto(data)) {
|
||||
if (const auto photo = Auth().data().photo(data)) {
|
||||
photo->peer = this;
|
||||
return photo->id;
|
||||
}
|
||||
@@ -353,7 +353,7 @@ const Text &BotCommand::descriptionText() const {
|
||||
|
||||
bool UserData::canShareThisContact() const {
|
||||
return canShareThisContactFast()
|
||||
|| !App::phoneFromSharedContact(peerToUser(id)).isEmpty();
|
||||
|| !Auth().data().findContactPhone(peerToUser(id)).isEmpty();
|
||||
}
|
||||
|
||||
void UserData::setContactStatus(ContactStatus status) {
|
||||
|
Reference in New Issue
Block a user