Skip to content

Commit

Permalink
fix #413 (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
bourvill authored Feb 10, 2024
1 parent 47d72eb commit f19b0b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Intents/AddEntryIntent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ struct AddEntryIntent: WallabagIntent {
}

func perform() async throws -> some IntentResult {
_ = try await kit.requestTokenAsync()
_ = try await kit.send(to: WallabagEntryEndpoint.add(url: url.absoluteString))

return .result()
Expand Down
1 change: 1 addition & 0 deletions bagit/ShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class ShareViewController: UIViewController {

Task {
do {
_ = try await kit.requestTokenAsync()
let _: WallabagEntry = try await kit.send(to: WallabagEntryEndpoint.add(url: shareURL))
self.clearView(withError: nil)
} catch {
Expand Down
4 changes: 2 additions & 2 deletions wallabag.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
MARKETING_VERSION = 7.2.0;
MARKETING_VERSION = 7.2.1;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -1330,7 +1330,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
MARKETING_VERSION = 7.2.0;
MARKETING_VERSION = 7.2.1;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down

0 comments on commit f19b0b0

Please sign in to comment.