2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Play premium video avatars in chats list.

This commit is contained in:
John Preston
2022-05-16 15:38:35 +04:00
parent 5478a8c014
commit 201edb2e69
19 changed files with 657 additions and 253 deletions

View File

@@ -92,7 +92,10 @@ ChannelData::ChannelData(not_null<Data::Session*> owner, PeerId id)
void ChannelData::setPhoto(const MTPChatPhoto &photo) {
photo.match([&](const MTPDchatPhoto & data) {
updateUserpic(data.vphoto_id().v, data.vdc_id().v);
updateUserpic(
data.vphoto_id().v,
data.vdc_id().v,
data.is_has_video());
}, [&](const MTPDchatPhotoEmpty &) {
clearUserpic();
});