Skip to content

Conversation

@laevandus
Copy link
Contributor

🔗 Issue Link

Resolves IOS-564

🎯 Goal

Do not show Giphy in the channel preview

🛠 Implementation

LLC and UIKit use channel's preview message for showing the preview of the channel. SwiftUI was just using the latest message. This PR unifies the logic and starts using the channel's preview message as well. Channel preview explicitly filters out messages where the type is ephemeral.

🧪 Testing

  1. Open a channel
  2. Send a message "A"
  3. Go to channel list, the channel's preview shows the message "A"
  4. Open the same channel, start sending a giphy, but cancel it
  5. Go back to channel list, channel preview shows the message "A"

☑️ Checklist

  • I have signed the Stream CLA (required)
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Affected documentation updated (docusaurus, tutorial, CMS (task created)

@laevandus laevandus added the bug label Nov 27, 2024
@laevandus laevandus requested a review from a team as a code owner November 27, 2024 07:49
…list

Channel preview message ignores giphy by default
@laevandus laevandus force-pushed the fix/channel-preview-message branch from 35b74be to c150620 Compare November 27, 2024 07:49
@Stream-SDK-Bot
Copy link
Collaborator

SDK Size

title develop branch diff status
StreamChatSwiftUI 8.09 MB 8.09 MB 0 KB 🟢

@sonarqubecloud
Copy link

@laevandus laevandus merged commit c06f87e into develop Nov 27, 2024
11 checks passed
@laevandus laevandus deleted the fix/channel-preview-message branch November 27, 2024 13:12
@Stream-SDK-Bot Stream-SDK-Bot mentioned this pull request Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants