Skip to content

Commit e356537

Browse files
merged main
2 parents c138ccb + 4a44fbf commit e356537

File tree

8 files changed

+28
-15
lines changed

8 files changed

+28
-15
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
33

44
# Upcoming
55

6+
### ✅ Added
7+
- Image gallery
8+
9+
# [4.6.3](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.6.3)
10+
_December 21, 2021_
11+
12+
### ✅ Added
13+
- Inline replies to messages
14+
- Message threads
15+
- Bug fix for multi-step keyboards
16+
617
### 🔄 Changed
718

819
# [4.6.1](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.6.1)

DemoAppSwiftUI/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>4.6.0</string>
20+
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
2222
<string>$(CURRENT_PROJECT_VERSION)</string>
2323
<key>ITSAppUsesNonExemptEncryption</key>

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let package = Package(
1717
)
1818
],
1919
dependencies: [
20-
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.5.0"),
20+
.package(url: "https://github.com/GetStream/stream-chat-swift.git", from: "4.6.0"),
2121
.package(url: "https://github.com/kean/Nuke.git", from: "10.0.0"),
2222
.package(url: "https://github.com/kean/NukeUI.git", from: "0.7.0")
2323
],

Sources/StreamChatSwiftUI/ChatChannel/Composer/ComposerTextInputView.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ struct ComposerTextInputView: UIViewRepresentable {
2424

2525
func updateUIView(_ uiView: InputTextView, context: Context) {
2626
DispatchQueue.main.async {
27-
uiView.text = text
28-
uiView.handleTextChange()
27+
if uiView.markedTextRange == nil {
28+
uiView.text = text
29+
uiView.handleTextChange()
30+
}
2931
}
3032
}
3133

Sources/StreamChatSwiftUI/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.6.1</string>
18+
<string>4.6.3</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPhotoLibraryUsageDescription</key>

StreamChatSwiftUI.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = "StreamChatSwiftUI"
3-
spec.version = "4.6.1"
3+
spec.version = "4.6.3"
44
spec.summary = "StreamChat SwiftUI Components"
55
spec.description = "StreamChatUI SDK offers flexible SwiftUI components able to display data provided by StreamChat SDK."
66

@@ -19,7 +19,7 @@ Pod::Spec.new do |spec|
1919

2020
spec.framework = "Foundation", "UIKit", "SwiftUI"
2121

22-
spec.dependency "StreamChat", "~> 4.5.0"
22+
spec.dependency "StreamChat", "~> 4.6.0"
2323
spec.dependency "Nuke", "~> 10.0"
2424
spec.dependency "SwiftyGif", "~> 5.0"
2525
spec.dependency "NukeUI", "~> 0.7.0"

StreamChatSwiftUI.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@
16901690
"@executable_path/Frameworks",
16911691
"@loader_path/Frameworks",
16921692
);
1693-
MARKETING_VERSION = 4.6.0;
1693+
MARKETING_VERSION = 4.6.2;
16941694
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.StreamChatSwiftUI;
16951695
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
16961696
SKIP_INSTALL = YES;
@@ -1723,7 +1723,7 @@
17231723
"@executable_path/Frameworks",
17241724
"@loader_path/Frameworks",
17251725
);
1726-
MARKETING_VERSION = 4.6.0;
1726+
MARKETING_VERSION = 4.6.2;
17271727
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.StreamChatSwiftUI;
17281728
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
17291729
SKIP_INSTALL = YES;
@@ -1806,7 +1806,7 @@
18061806
"$(inherited)",
18071807
"@executable_path/Frameworks",
18081808
);
1809-
MARKETING_VERSION = 0.0.1;
1809+
MARKETING_VERSION = 4.6.3;
18101810
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.DemoAppSwiftUI;
18111811
PRODUCT_NAME = "$(TARGET_NAME)";
18121812
PROVISIONING_PROFILE_SPECIFIER = "match Development io.getstream.iOS.DemoAppSwiftUI";
@@ -1839,7 +1839,7 @@
18391839
"$(inherited)",
18401840
"@executable_path/Frameworks",
18411841
);
1842-
MARKETING_VERSION = 0.0.1;
1842+
MARKETING_VERSION = 4.6.3;
18431843
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.DemoAppSwiftUI;
18441844
PRODUCT_NAME = "$(TARGET_NAME)";
18451845
PROVISIONING_PROFILE_SPECIFIER = "match AppStore io.getstream.iOS.DemoAppSwiftUI";
@@ -1895,8 +1895,8 @@
18951895
isa = XCRemoteSwiftPackageReference;
18961896
repositoryURL = "https://github.com/GetStream/stream-chat-swift.git";
18971897
requirement = {
1898-
branch = main;
1899-
kind = branch;
1898+
kind = exactVersion;
1899+
version = 4.6.0;
19001900
};
19011901
};
19021902
8465FCB527468B0600AF091E /* XCRemoteSwiftPackageReference "NukeUI" */ = {

StreamChatSwiftUITests/Infrastructure/TestTools/DatabaseContainer_Mock.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ extension DatabaseContainer {
243243
reactionCounts: reactionCounts
244244
)
245245

246-
let messageDTO = try session.saveMessage(payload: message, channelDTO: channelDTO)
246+
let messageDTO = try session.saveMessage(payload: message, channelDTO: channelDTO, syncOwnReactions: true)
247247
messageDTO.localMessageState = localState
248248
messageDTO.reactionCounts = reactionCounts.mapKeys(\.rawValue)
249249
messageDTO.reactionScores = reactionScores.mapKeys(\.rawValue)
@@ -257,7 +257,7 @@ extension DatabaseContainer {
257257
text: "Reply \(idx)"
258258
)
259259

260-
let replyDTO = try session.saveMessage(payload: reply, for: cid)!
260+
let replyDTO = try session.saveMessage(payload: reply, for: cid, syncOwnReactions: true)!
261261
messageDTO.replies.insert(replyDTO)
262262
}
263263
}

0 commit comments

Comments
 (0)