From 94768e32c73ec6ed82ff1d9efec55299068abb39 Mon Sep 17 00:00:00 2001 From: Anian Schleyer <98647423+anian03@users.noreply.github.com> Date: Sun, 27 Oct 2024 00:25:24 +0200 Subject: [PATCH] `Communication`: Fix text selection crash (#197) * Fix crash related to TextSelection * Update core modules --- .../xcshareddata/swiftpm/Package.resolved | 6 +++--- ArtemisKit/Package.swift | 2 +- .../SendMessageViewModels/SendMessageViewModel.swift | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Artemis.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Artemis.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 9535af3e..38738485 100644 --- a/Artemis.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Artemis.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "56012048077ac605e3e4427ea4068452adfc50949f0073b161c8b2050ca8ae9a", + "originHash" : "da5f81e1ea4d3ca4bb9cdba1505f382a0747884879f3fd6ab52e1aea178f1dab", "pins" : [ { "identity" : "apollon-ios-module", @@ -15,8 +15,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/ls1intum/artemis-ios-core-modules", "state" : { - "revision" : "1c7b69b8a706ce4fa58d48664a637b63114e4800", - "version" : "14.6.0" + "revision" : "13e3416ec64c8e8670a017d544f668be43ee3188", + "version" : "14.7.0" } }, { diff --git a/ArtemisKit/Package.swift b/ArtemisKit/Package.swift index e92474bc..4be84dde 100644 --- a/ArtemisKit/Package.swift +++ b/ArtemisKit/Package.swift @@ -20,7 +20,7 @@ let package = Package( dependencies: [ .package(url: "https://github.com/Kelvas09/EmojiPicker.git", from: "1.0.0"), .package(url: "https://github.com/ls1intum/apollon-ios-module", .upToNextMajor(from: "1.0.2")), - .package(url: "https://github.com/ls1intum/artemis-ios-core-modules", .upToNextMajor(from: "14.6.0")), + .package(url: "https://github.com/ls1intum/artemis-ios-core-modules", .upToNextMajor(from: "14.7.0")), .package(url: "https://github.com/mac-cain13/R.swift.git", from: "7.7.0") ], targets: [ diff --git a/ArtemisKit/Sources/Messages/ViewModels/SendMessageViewModels/SendMessageViewModel.swift b/ArtemisKit/Sources/Messages/ViewModels/SendMessageViewModels/SendMessageViewModel.swift index 5432f922..25b9c933 100644 --- a/ArtemisKit/Sources/Messages/ViewModels/SendMessageViewModels/SendMessageViewModel.swift +++ b/ArtemisKit/Sources/Messages/ViewModels/SendMessageViewModels/SendMessageViewModel.swift @@ -273,6 +273,7 @@ extension SendMessageViewModel { } switch result { case .success: + selection = nil text = "" default: return