Skip to content

feat: add ability to handle bounced message#2415

Merged
santhoshvai merged 5 commits into
developfrom
message-bounce
Feb 6, 2024
Merged

feat: add ability to handle bounced message#2415
santhoshvai merged 5 commits into
developfrom
message-bounce

Conversation

@khushal87
Copy link
Copy Markdown
Contributor

🎯 Goal

The goal of the PR is to introduce the ability to handle bounced messages.

πŸ›  Implementation details

Product-wise, if a bounced message is sent in a channel, it should show an error icon, which, on long press/press, should open a model with three capabilities: Send Anyway, Edit message, and Delete message.

A new component that shows an alert named MessageBounce is introduced. It's a type component since users can also feel free to make their own components if they want, not limiting themselves to the Alert we have by default.

Note: The edit message is different for bounced messages. It should resend a new message with the new text changes in the edit.

Note: The editing state variable was MessageType<StreamChatGeneric> | boolean before; this has been changed to MessageType<StreamChatGeneric> | undefined now, improving readability.

🎨 UI Changes

Screen.Recording.2024-02-05.at.5.16.52.PM.mov

πŸ§ͺ Testing

β˜‘οΈ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

Comment thread package/src/components/Message/Message.tsx Outdated
Comment thread package/src/components/Message/MessageSimple/MessageBounce.tsx Outdated
Comment thread package/src/components/Message/MessageSimple/MessageBounce.tsx Outdated
Comment thread package/src/components/Message/MessageSimple/MessageBounce.tsx
Comment thread package/src/contexts/messageInputContext/MessageInputContext.tsx
@santhoshvai santhoshvai merged commit a2ed1bd into develop Feb 6, 2024
@santhoshvai santhoshvai deleted the message-bounce branch February 6, 2024 09:39
@github-actions github-actions Bot mentioned this pull request Feb 6, 2024
6 tasks
@stream-ci-bot
Copy link
Copy Markdown
Contributor

πŸŽ‰ This PR is included in version 5.24.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

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.

3 participants