mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-30 17:16:46 +00:00
Merge tag 'v5.2.0' into dev
# Conflicts: # Telegram/Resources/winrc/Telegram.rc # Telegram/Resources/winrc/Updater.rc # Telegram/SourceFiles/calls/calls_call.cpp # Telegram/SourceFiles/core/version.h # Telegram/SourceFiles/history/view/media/history_view_gif.cpp # Telegram/SourceFiles/window/notifications_manager_default.cpp # Telegram/lib_ui # snap/snapcraft.yaml
This commit is contained in:
@@ -3139,8 +3139,7 @@ void Session::photoApplyFields(
|
||||
return;
|
||||
}
|
||||
photo->setRemoteLocation(dc, access, fileReference);
|
||||
photo->date = date;
|
||||
photo->setHasAttachedStickers(hasStickers);
|
||||
photo->setFields(date, hasStickers);
|
||||
photo->updateImages(
|
||||
inlineThumbnailBytes,
|
||||
small,
|
||||
@@ -4748,16 +4747,16 @@ uint64 Session::wallpapersHash() const {
|
||||
return _wallpapersHash;
|
||||
}
|
||||
|
||||
MTP::DcId Session::statsDcId(not_null<ChannelData*> channel) {
|
||||
const auto it = _channelStatsDcIds.find(channel);
|
||||
return (it == end(_channelStatsDcIds)) ? MTP::DcId(0) : it->second;
|
||||
MTP::DcId Session::statsDcId(not_null<PeerData*> peer) {
|
||||
const auto it = _peerStatsDcIds.find(peer);
|
||||
return (it == end(_peerStatsDcIds)) ? MTP::DcId(0) : it->second;
|
||||
}
|
||||
|
||||
void Session::applyStatsDcId(
|
||||
not_null<ChannelData*> channel,
|
||||
not_null<PeerData*> peer,
|
||||
MTP::DcId dcId) {
|
||||
if (dcId != channel->session().mainDcId()) {
|
||||
_channelStatsDcIds[channel] = dcId;
|
||||
if (dcId != peer->session().mainDcId()) {
|
||||
_peerStatsDcIds[peer] = dcId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user