Skip to content

Commit

Permalink
fix(WebViewModel): Cast message dict to [String: Any]
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon committed Jun 1, 2023
1 parent b927a5c commit 816b3d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Infomaniak/ios-core",
"state" : {
"revision" : "fc2e30b6f130303279f3b75558b9cd84759719a0"
"revision" : "cf001ba55dbf5f152353d66b55cd46350bd4b895"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions Mail/Views/Thread/WebViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ extension WebViewModel: WKScriptMessageHandler {
}

private func sendOverScrollMessage(_ message: WKScriptMessage) {
guard let data = message.body as? [String: String] else { return }
guard let data = message.body as? [String: Any] else { return }

SentrySDK.capture(message: "After zooming the mail it can still scroll.") { scope in
scope.setTags(["messageUid": data["messageId"] ?? ""])
scope.setTags(["messageUid": data["messageId"] as? String ?? ""])
scope.setExtras([
"clientWidth": data["clientWidth"],
"scrollWidth": data["scrollWidth"]
Expand Down

0 comments on commit 816b3d6

Please sign in to comment.