Skip to content

Conversation

@testableapple
Copy link
Contributor

StreamChat

βœ… Added

  • Add message moderation details to ChatMessage #2846
  • Add support for resending, editing and deleting bounced messages #2846

🐞 Fixed

  • Fix not being able to delete local-only messages #2846
  • Fix bounced message displayed as a system message instead of an error #2846
  • Fix not showing bounced actions when long pressing bounced message #2846
  • Fix empty channel list when querying both hidden or shown channels #2865

StreamChatUI

βœ… Added

  • Allow easier customisation of the ChatChannelListItemView #2855

🐞 Fixed

  • Always use reloadChannels() in the Channel List to improve stability #2858

⚠️ Important

  • From now on, our XCFrameworks will be built with Swift 5.7. In order to use them, you need Xcode 14 or above.

testableapple and others added 13 commits October 26, 2023 15:46
* Make it easier to customize the channel preview message text

* Make it easier to customize the channel title text in the Channel List

* Update CHANGELOG.md
* Add moderation details payloads

* Add moderation details DTO

* Add moderation details models

* Change isBounced logic to use moderationDetails

* Add `shouldRenderAsSystemMessage` to control when to render message a system message

* Change `isLastActionFailed` to account for `isBounced`

* Change `isInteractionEnabled` to account for `isBounced`

* Fix message view not updated when moderation details is removed

* Change `textContent` to account for `isBounced`

* Grab the original text when editing a bounced message

* Allow resending a bounced message

* When editing a bounced message, resend it instead of updating it on the server

Since the message does not exist on the server, we can't call update message in this case

* Don't clear bounced message when opening channel

* Hard delete messages which are local only

* Remove debounced message actions from `ChatMessageActionsVC`

It does not make sense for this component to handle this responsibility

* Show alert for debounced message even on long press

* Allow to override message actions title from the constructor

* Show debounced message actions alert from Message List

* Update localization of moderated messages

* Update CHANGELOG.md

* Revert "Change `textContent` to account for `isBounced`"

This reverts commit 1c7af49.

* Revert "Grab the original text when editing a bounced message"

This reverts commit 1aec5a3.

* Revert changing the bounced message text when resending it

* Fix Unit Tests not compiling

* Add Moderation Details Payload test coverage

* Add Moderation Details DTO coverage

* Add Moderation Details domain test coverage

* Add test coverage to shouldRenderAsSystemMessage

* Add test coverage to isLastActionFailed

* Add test coverage to isInteractionEnabled

* Add test coverage for resetting moderation of a message

* Add test coverage for resending bounced message

* Add snapshot test for a bounced message

* Add test coverage to editing bounced message

* Add test coverage to deleting local only message

* Update CHANGELOG.md

* Change the moderation detail action to be immutable

* Update Sources/StreamChatUI/Utils/ChatMessage+Extensions.swift

Co-authored-by: Pol Quintana <pol.quintana1@gmail.com>

* Fix Xcode 14 compilation in Message List

* Update comments in `MessageUpdater.deleteMessage()`

* Fix ephemeral messages should have interaction disabled

* Fix being able to swipeToReply bounced messages

---------

Co-authored-by: Pol Quintana <pol.quintana1@gmail.com>
Co-authored-by: Alexey Alter-Pesotskiy <a.alterpesotskiy@mail.ru>
* Always use reloadChannels() in Channel List

* Update CHANGELOG.md

* Remove unnecessary tests
…2865)

* Fix empty channel list when querying both hidden or shown channels

* Update CHANGELOG.md
* Background Mapping - Main implementation (#2831)

* Use OperationQueue to serialize mappings

* BG improvements

* Improve threading and notifications for BackgroundListDatabaseObserver

* Fix existing tests

* Make sure BG and FG List Observers have the same behaviour

* Fixes for ChannelController tests

* Fix Xcode 13 issues

* Fix ChatChannelController tests

* Fix ChannelListController tests

* Fix CoreDataLazy related tests fixes

* Address PR comments

* Remove unneeded thread switching

* Remove old test

* Background Mapping - Offline Fixes (#2839)

* Make sure BGListObserver reports initial items through callback

* Fix ChatChannelController tests

* Minor improvements on BackgroundListDatabaseObserver

* Fix ChatChannelListController tests

* Fix ListDatabaseObserver_Sorting tests

* Add more documentation

* Fix failing tests

* Address PR comments

* Bring back test removed by mistake

* Background Mapping - Disable CoreDataLazy (#2844)

* Avoid lazyness when fetching _readByCount

* Remove CoreDataLazy(forceLazy:)

* Avoid performance degradator logic in CoreDataLazy

* Enable Background Mapping for internal Stream configuration

* Add extra documentation

* Fix existing CoreDataLazy specs

* Add tests for relationshipAsModel

* Background Mapping - Entity Observer (#2837)

* Create BackgroundEntityDatabaseObserver

* Use EntityDatabaseObserverWrapper to switch from Foreground to Background

* Fix existing tests

* Make sure database deletions are processed in the right thread

* Apply learnings from BackgroundListDatabaseObserver to Entity Observer

* Add EntityDatabaseObserverWrapper_Tests

* Unify Background Database Observer logic

* Fix flaky test

* Fix documentation

* Do not try to fetch Core Data objects with temporary IDs

* Enable Background Mapping for DemoApp

* Fix patch for NSManagedObjectID being temporary

* Remove public declarations for _canFetchRelationship and _backgroundMappingRelationshipsMaxDepth

---------

Co-authored-by: Alexey Alter-Pesotskiy <a.alterpesotskiy@mail.ru>
@testableapple testableapple requested a review from a team as a code owner November 3, 2023 09:27
@github-actions
Copy link

github-actions bot commented Nov 3, 2023

Build for regression testing β„–123456953 has been uploaded to TestFlight 🎁

@emerge-tools
Copy link

emerge-tools bot commented Nov 3, 2023

1 build increased size

Name Version Download Change Install Change
ChatSample 1.0 (1) 4.4 MB ⬆️ 29.6 kB (0.68%) 12.5 MB ⬆️ 112.3 kB (0.92%)

ChatSample 1.0 (1)

βš–οΈ Compare build
πŸ“¦ Install build
⏱️ Analyze build performance

Total install size change: ⬆️ 112.3 kB (0.92%)
Total download size change: ⬆️ 29.6 kB (0.68%)

Largest size changes

Item Install Size Change
πŸ“ StreamChat.ChatMessage.init(fromDTO,depth) ⬆️ 15.1 kB
πŸ“ StreamChat.ChatChannel.create(fromDTO,depth) ⬆️ 14.8 kB
πŸ—‘ StreamChat.ChatMessage.init(fromDTO) ⬇️ -14.5 kB
πŸ—‘ StreamChat.ChatChannel.create(fromDTO) ⬇️ -13.9 kB
πŸ“ StreamChat.BackgroundDatabaseObserver.listenForRemoveAllDataNotif... ⬆️ 11.6 kB

Image of diff


πŸ›Έ Powered by Emerge Tools

@testableapple testableapple merged commit f1eae1a into main Nov 3, 2023
@testableapple testableapple deleted the release/4.41.0 branch November 3, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants