Skip to content

Commit daaa4dd

Browse files
authored
Discard any changes before we delete the persistent state (#3170)
1 parent 9821245 commit daaa4dd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ _April 30, 2024_
2222
- Adds `firstReactionAt` and `lastReactionAt` to `ChatMessageReactionData` to be able to sort by dates in `Components.reactionsSorting` [#3158](https://github.com/GetStream/stream-chat-swift/pull/3158)
2323
- Add `ChatReactionListController` to query and filter reactions from a message [#3167](https://github.com/GetStream/stream-chat-swift/pull/3167)
2424
- Add `ChatClient.reactionListController()` to create an instance of `ChatReactionListController` [#3167](https://github.com/GetStream/stream-chat-swift/pull/3167)
25+
### 🐞 Fixed
26+
- Reset managed object contexts before removing all the data on logout [#3170](https://github.com/GetStream/stream-chat-swift/pull/3170)
2527

2628
# [4.52.0](https://github.com/GetStream/stream-chat-swift/releases/tag/4.52.0)
2729
_April 09, 2024_

Sources/StreamChat/Database/DatabaseContainer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ class DatabaseContainer: NSPersistentContainer {
228228
allContext.forEach { context in
229229
context.perform {
230230
context.invalidateCurrentUserCache()
231+
context.reset()
231232
}
232233
}
233234

0 commit comments

Comments
 (0)