GIF-related fixes

This commit is contained in:
Eric Kotato 2021-07-04 23:08:42 +03:00
parent 9a872a355e
commit 4845a251c5
2 changed files with 2 additions and 1 deletions

View file

@ -73,6 +73,7 @@ bool HasFloatingHeader(Type type) {
switch (type) {
case Type::Photo:
case Type::Video:
case Type::GIF:
case Type::RoundFile:
case Type::RoundVoiceFile:
case Type::MusicFile:

View file

@ -2502,7 +2502,7 @@ void OverlayWidget::displayDocument(
}
refreshFromLabel(item);
_blurred = false;
if (_showAsPip && _streamed && !videoIsGifOrUserpic()) {
if (_showAsPip && _streamed/* && !videoIsGifOrUserpic()*/) {
switchToPip();
} else {
displayFinished();