Skip to content

Commit

Permalink
Fix more warnings (#2453)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Jan 3, 2025
1 parent 4b66a75 commit 2b68ab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deltachat-ios/Chat/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
tableView.contentInsetAdjustmentBehavior = .never
tableView.automaticallyAdjustsScrollIndicatorInsets = false
tableView.publisher(for: \.contentInset)
.assign(to: \.scrollIndicatorInsets, on: tableView)
.assign(to: \.verticalScrollIndicatorInsets, on: tableView)
.store(in: &bag)

navigationController?.setNavigationBarHidden(false, animated: false)
Expand Down
4 changes: 2 additions & 2 deletions deltachat-ios/Controller/WebViewViewController.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import UIKit
import WebKit
@preconcurrency import WebKit
import DcCore

class WebViewViewController: UIViewController, WKNavigationDelegate {
Expand Down Expand Up @@ -130,7 +130,7 @@ class WebViewViewController: UIViewController, WKNavigationDelegate {
}
do {
let data: Data = try Data(contentsOf: path)
let jsCode: String = String(decoding: data, as: UTF8.self)
let jsCode = String(data: data, encoding: .utf8)
// inject the search code
webView.evaluateJavaScript(jsCode, completionHandler: { _, error in

Check failure on line 135 in deltachat-ios/Controller/WebViewViewController.swift

View workflow job for this annotation

GitHub Actions / build

value of optional type 'String?' must be unwrapped to a value of type 'String'
logger.error("\(String(describing: error))")
Expand Down

0 comments on commit 2b68ab3

Please sign in to comment.