Merge branch 'develop' into fix/edit-message-input-builder

This commit is contained in:
Sahil Kumar
2023-05-01 22:50:15 +05:30
committed by GitHub
2 changed files with 45 additions and 5 deletions
+18
View File
@@ -10,6 +10,24 @@
- [[#1490]](https://github.com/GetStream/stream-chat-flutter/issues/1490) Fixed `editMessageInputBuilder` property not
used in message edit widget.
✅ Added
- Added `StreamMessageInput.ogPreviewFilter` to allow users to filter out the og preview
links. [#1338](https://github.com/GetStream/stream-chat-flutter/issues/1338)
```dart
StreamMessageInput(
ogPreviewFilter: (matchedUri, messageText) {
final url = matchedUri.toString();
if (url.contains('giphy.com')) {
// Return false to prevent the OG preview from being built.
return false;
}
// Return true to build the OG preview.
return true;
),
```
## 6.0.0
🐞 Fixed