This commit is contained in:
mmrbnjd
2025-08-10 21:02:51 +03:30
parent 0856c8ae59
commit 11608c4f6d

View File

@@ -370,6 +370,7 @@
IsRecording = false;
recordingTimer?.Dispose();
recordingTimer = null;
await ClearSelectedImage();
StateHasChanged();
}
}
@@ -701,6 +702,7 @@
await file.OpenReadStream().CopyToAsync(memoryStream);
SelectedImageBytes = memoryStream.ToArray();
SelectedImagePreview = $"data:{file.ContentType};base64,{Convert.ToBase64String(SelectedImageBytes)}";
await ClearRecordedAudio();
}
private Task ClearSelectedImage()