Починка импорта, плеер для аудио
This commit is contained in:
@@ -95,20 +95,10 @@ internal sealed class GetSharedMediaQueryHandler : IQueryHandler<GetSharedMediaQ
|
||||
(mType == "image" && (filename.EndsWith(".mp4") || filename.EndsWith(".gif") || url.EndsWith(".gif") || filename.Contains("gif"))) ||
|
||||
(mType == "video" && (filename.Contains("animation") || filename.Contains("gif")));
|
||||
|
||||
if (filterType == "gifs")
|
||||
{
|
||||
return isGif;
|
||||
}
|
||||
|
||||
if (filterType == "files")
|
||||
{
|
||||
return mType != "image" && mType != "video" && mType != "link" && !isGif;
|
||||
}
|
||||
|
||||
if (filterType == "media")
|
||||
{
|
||||
return (mType == "image" || mType == "video") && !isGif;
|
||||
}
|
||||
if (filterType == "gifs") return isGif;
|
||||
if (filterType == "media") return (mType == "image" || mType == "video") && !isGif;
|
||||
if (filterType == "files") return mType == "file" || (mType != "image" && mType != "video" && mType != "link" && !isGif);
|
||||
if (filterType == "links") return mType == "link";
|
||||
|
||||
return true;
|
||||
}).ToList();
|
||||
|
||||
Reference in New Issue
Block a user