Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Nextcloud.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6361,8 +6361,8 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/nextcloud/NextcloudKit";
requirement = {
kind = exactVersion;
version = 7.1.4;
branch = main;
kind = branch;
};
};
F788ECC5263AAAF900ADC67F /* XCRemoteSwiftPackageReference "MarkdownKit" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,16 @@ class NCAccountSettingsModel: ObservableObject, ViewOnAppearHandling {
}

/// Function to update the user data
func getUserStatus() -> (statusImage: UIImage?, statusMessage: String, descriptionMessage: String) {
func getUserStatus() -> (statusImage: UIImage?, statusImageColor: UIColor, statusMessage: String, descriptionMessage: String) {
guard let tblAccount,
let capabilities = NCNetworking.shared.capabilities[tblAccount.account] else {
return (UIImage(), "", "")
return (UIImage(), .black, "", "")
}
if capabilities.userStatusEnabled,
let tableAccount = database.getTableAccount(predicate: NSPredicate(format: "account == %@", tblAccount.account)) {
return NCUtility().getUserStatus(userIcon: tableAccount.userStatusIcon, userStatus: tableAccount.userStatusStatus, userMessage: tableAccount.userStatusMessage)
}
return (nil, "", "")
return (nil, .black, "", "")
}

/// Is the user an Admin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct NCAccountSettingsView: View {
ForEach(0..<model.tblAccounts.count, id: \.self) { index in
let status = model.getUserStatus()
let avatar = NCUtility().loadUserImage(for: model.tblAccounts[index].user, displayName: model.tblAccounts[index].displayName, urlBase: model.tblAccounts[index].urlBase)

//
// User
VStack {
Expand All @@ -43,9 +44,11 @@ struct NCAccountSettingsView: View {
.fill(.white)
.frame(width: 30, height: 30)
Image(uiImage: statusImage)
.renderingMode(.template)
.resizable()
.scaledToFit()
.frame(width: 30, height: 30)
.foregroundStyle(Color(uiColor: status.statusImageColor))
}
.offset(x: 30, y: -30)
}
Expand Down
20 changes: 0 additions & 20 deletions iOSClient/Images.xcassets/Image.imageset/Contents.json

This file was deleted.

This file was deleted.

Binary file not shown.
15 changes: 0 additions & 15 deletions iOSClient/Images.xcassets/circle_fill.imageset/Contents.json

This file was deleted.

Binary file not shown.
15 changes: 0 additions & 15 deletions iOSClient/Images.xcassets/userStatusAway.imageset/Contents.json

This file was deleted.

Binary file not shown.
15 changes: 0 additions & 15 deletions iOSClient/Images.xcassets/userStatusDnd.imageset/Contents.json

This file was deleted.

Binary file not shown.
15 changes: 0 additions & 15 deletions iOSClient/Images.xcassets/userStatusOffline.imageset/Contents.json

This file was deleted.

Binary file not shown.
4 changes: 2 additions & 2 deletions iOSClient/Networking/NCNetworkingProcess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@

await runMetadataPipelineAsync()

// TODO: Check temperature

Check warning on line 129 in iOSClient/Networking/NCNetworkingProcess.swift

View workflow job for this annotation

GitHub Actions / Lint

Todo Violation: TODOs should be resolved (Check temperature) (todo)

if lastUsedInterval != minInterval {
await startTimer(interval: minInterval)
Expand Down Expand Up @@ -257,7 +257,7 @@
if metadata.isDirectoryE2EE {
await NCNetworkingE2EEUpload().upload(metadata: metadata, controller: controller)

httpMaximumConnectionsPerHostInUpload = 1
httpMaximumProcessUpload = 1
} else if metadata.chunk > 0 {
let controller = controller

Expand All @@ -283,7 +283,7 @@
hud.dismiss()
}

httpMaximumConnectionsPerHostInUpload = 1
httpMaximumProcessUpload = 1
} else {
await networking.uploadFileInBackground(metadata: metadata)
}
Expand Down
5 changes: 4 additions & 1 deletion iOSClient/Supporting Files/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@

/* User status */
"_away_" = "Away";
/* User status */

/* User status */
"_dnd_" = "Do not disturb";

/* User status */
Expand All @@ -187,6 +187,9 @@
/* User status */
"_invisible_description_" = "Appear offline";

/* User status */
"_busy_" = "Busy";

/* User status */
"_status_message_" = "Status message";
"_status_message_placehorder_" = "What is your status?";
Expand Down
Loading
Loading