Skip to content

Commit e8f94cb

Browse files
v5.1.0
1 parent c634716 commit e8f94cb

File tree

54 files changed

+1043
-612
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1043
-612
lines changed

calls_uikit/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
sdk: flutter
1313
intl: any
1414
get: ^4.6.5
15-
cometchat_sdk: ^4.0.24
15+
cometchat_sdk: ^4.0.25
1616
cometchat_calls_sdk: ^4.1.0
1717
cometchat_uikit_shared: ^5.0.5
1818
flutter_svg: ^2.0.17

chat_uikit/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 5.1.0
2+
3+
## New
4+
- Added a **Moderation View** in the default bottom view of the message bubble. This view appears for messages that are disapproved based on their moderation status.
5+
- Introduced a new prop `hideModerationView` in the **CometChatMessageList** component, allowing developers to hide the Moderation View when needed.
6+
7+
## Enhancements
8+
- Updated `cometchat_sdk` to version `4.0.25`.
9+
- Updated `cometchat_uikit_shared` to version `5.1.0`.
10+
111
## 5.0.5
212

313
## Enhancements

chat_uikit/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ android {
6161

6262
defaultConfig {
6363
minSdkVersion 21
64-
buildConfigField("String", "SDK_VERSION", "\"5.0.5\"")
64+
buildConfigField("String", "SDK_VERSION", "\"5.1.0\"")
6565
}
6666

6767
dependencies {

chat_uikit/ios/cometchat_chat_uikit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'cometchat_chat_uikit'
7-
s.version = '5.0.5'
7+
s.version = '5.1.0'
88
s.summary = 'CometChat Flutter UI KIt'
99
s.description = <<-DESC
1010
CometChat Flutter UI KIt

chat_uikit/lib/src/extensions/message_translation/message_translation_extension_decorator.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ class MessageExtensionTranslationDecorator extends DataSourceDecorator {
3636
additionalConfigurations,
3737
);
3838

39-
if (messageObject.metadata != null &&
40-
messageObject.metadata!.containsKey('translated_message') == false && additionalConfigurations?.hideTranslateMessageOption != true) {
39+
if (!ModerationCheckUtil.instance.isMessageDisapprovedFromModeration(messageObject) &&
40+
(messageObject.metadata != null &&
41+
messageObject.metadata!.containsKey('translated_message') == false) &&
42+
additionalConfigurations?.hideTranslateMessageOption != true) {
4143
textTemplateOptions.add(getOption(context));
4244
}
4345

0 commit comments

Comments
 (0)