Simplified streaming and file deletion functions

This commit is contained in:
Isaac Abadi
2021-05-16 02:53:36 -06:00
parent 1d2ab0dc41
commit 297a4a3f34
3 changed files with 32 additions and 114 deletions

View File

@@ -244,7 +244,7 @@ export class RecentVideosComponent implements OnInit {
}
deleteNormalFile(file, blacklistMode = false) {
this.postsService.deleteFile(file.uid, file.isAudio ? 'audio' : 'video', blacklistMode).subscribe(result => {
this.postsService.deleteFile(file.uid, blacklistMode).subscribe(result => {
if (result) {
this.postsService.openSnackBar('Delete success!', 'OK.');
this.removeFileCard(file);