ios: voice message repeat receive ui workaround (#1437)

This commit is contained in:
JRoberts
2022-11-26 12:43:26 +04:00
committed by GitHub
parent 1d819a4af3
commit 9c06acd4bc
7 changed files with 19 additions and 15 deletions

View File

@@ -284,11 +284,11 @@ struct ComposeView: View {
}
fileURL.stopAccessingSecurityScopedResource()
if let fileSize = fileSize,
fileSize <= maxFileSize {
fileSize <= MAX_FILE_SIZE {
chosenFile = fileURL
composeState = composeState.copy(preview: .filePreview(fileName: fileURL.lastPathComponent))
} else {
let prettyMaxFileSize = ByteCountFormatter().string(fromByteCount: maxFileSize)
let prettyMaxFileSize = ByteCountFormatter().string(fromByteCount: MAX_FILE_SIZE)
AlertManager.shared.showAlertMsg(
title: "Large file!",
message: "Currently maximum supported file size is \(prettyMaxFileSize)."

View File

@@ -80,7 +80,7 @@ struct ComposeVoiceView: View {
}
.padding(.trailing, 12)
ProgressBar(length: maxVoiceMessageLength, progress: $recordingTime)
ProgressBar(length: MAX_VOICE_MESSAGE_LENGTH, progress: $recordingTime)
}
}