android: remove unnecessary READ_EXTERNAL_STORAGE permission request, open image picker in Gallery; IMG timestamp format (#610)

This commit is contained in:
JRoberts
2022-05-07 16:25:04 +04:00
committed by GitHub
parent fcb5c69281
commit 235bce8e2a
14 changed files with 67 additions and 73 deletions
+5 -2
View File
@@ -655,15 +655,18 @@ struct CIFile: Decodable {
CIFile(fileId: fileId, fileName: fileName, fileSize: fileSize, filePath: filePath, fileStatus: fileStatus)
}
var stored: Bool {
var loaded: Bool {
get {
switch self.fileStatus {
case .sndStored: return true
case .sndTransfer: return true
case .sndComplete: return true
case .sndCancelled: return true
case .rcvInvitation: return false
case .rcvAccepted: return false
case .rcvTransfer: return false
case .rcvCancelled: return false
case .rcvComplete: return true
default: return false
}
}
}