marinofaggiana 3 年 前
コミット
135ec392e3

+ 1 - 1
Nextcloud.xcodeproj/project.pbxproj

@@ -2897,7 +2897,7 @@
 			repositoryURL = "https://github.com/nextcloud/ios-communication-library/";
 			requirement = {
 				kind = revision;
-				revision = 8eaa9b7b8e00d6716b670194c4f0846c77ad1c88;
+				revision = e28ad7040cab1a51158ab38d7f97473fe263923e;
 			};
 		};
 		F788ECC5263AAAF900ADC67F /* XCRemoteSwiftPackageReference "MarkdownKit" */ = {

+ 1 - 1
Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

@@ -105,7 +105,7 @@
         "repositoryURL": "https://github.com/nextcloud/ios-communication-library/",
         "state": {
           "branch": null,
-          "revision": "8eaa9b7b8e00d6716b670194c4f0846c77ad1c88",
+          "revision": "e28ad7040cab1a51158ab38d7f97473fe263923e",
           "version": null
         }
       },

+ 2 - 4
iOSClient/UserStatus/NCUserStatus.swift

@@ -329,11 +329,9 @@ class NCUserStatus: UIViewController {
                 let date = now.addingTimeInterval(14400)
                 self.clearAtTimestamp = date.timeIntervalSince1970
             case NSLocalizedString("day", comment: ""):
-                self.clearAtTimestamp = 0
-                //self.clearAtSeconds = Calendar.current.dateComponents([.second], from: Date(), to: tomorrow).second ?? 0
+                self.clearAtTimestamp = tomorrow.timeIntervalSince1970
             case NSLocalizedString("_this_week_", comment: ""):
-                self.clearAtTimestamp = 0
-                //self.clearAtSeconds = Calendar.current.dateComponents([.second], from: Date(), to: endweek).second ?? 0
+                self.clearAtTimestamp = endweek.timeIntervalSince1970
             default:
                 self.clearAtTimestamp = 0
             }