Skip to content

Commit 985cab5

Browse files
v5.2.6
1 parent 2e80e0d commit 985cab5

File tree

57 files changed

+418
-169
lines changed

Some content is hidden

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

57 files changed

+418
-169
lines changed

examples/SampleApp/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ android {
8383
minSdkVersion rootProject.ext.minSdkVersion
8484
targetSdkVersion rootProject.ext.targetSdkVersion
8585
versionCode 1
86-
versionName "5.2.5"
86+
versionName "5.2.6"
8787
}
8888
signingConfigs {
8989
debug {

examples/SampleApp/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<activity
2828
android:name=".MainActivity"
2929
android:label="@string/app_name"
30-
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
30+
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|fontScale"
3131
android:launchMode="singleTask"
3232
android:windowSoftInputMode="adjustResize"
3333
android:exported="true">

examples/SampleApp/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
targetSdkVersion = 36
77
ndkVersion = "27.1.12297006"
88
kotlinVersion = "2.1.20"
9-
version = "V5.2.5"
9+
version = "V5.2.6"
1010
}
1111
repositories {
1212
google()

examples/SampleApp/ios/Podfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,13 +1755,13 @@ PODS:
17551755
- SocketRocket
17561756
- react-native-background-timer (2.4.1):
17571757
- React-Core
1758-
- react-native-cometchat-ui-kit (5.2.5):
1758+
- react-native-cometchat-ui-kit (5.2.6):
17591759
- React-Core
1760-
- react-native-cometchat-ui-kit/Video (= 5.2.5)
1761-
- react-native-cometchat-ui-kit/VideoCaching (= 5.2.5)
1762-
- react-native-cometchat-ui-kit/Video (5.2.5):
1760+
- react-native-cometchat-ui-kit/Video (= 5.2.6)
1761+
- react-native-cometchat-ui-kit/VideoCaching (= 5.2.6)
1762+
- react-native-cometchat-ui-kit/Video (5.2.6):
17631763
- React-Core
1764-
- react-native-cometchat-ui-kit/VideoCaching (5.2.5):
1764+
- react-native-cometchat-ui-kit/VideoCaching (5.2.6):
17651765
- DVAssetLoaderDelegate (~> 0.3.1)
17661766
- React-Core
17671767
- react-native-cometchat-ui-kit/Video
@@ -1941,7 +1941,7 @@ PODS:
19411941
- ReactCommon/turbomodule/core
19421942
- SocketRocket
19431943
- Yoga
1944-
- react-native-webrtc (124.0.6):
1944+
- react-native-webrtc (124.0.7):
19451945
- JitsiWebRTC (~> 124.0.0)
19461946
- React-Core
19471947
- React-NativeModulesApple (0.81.4):
@@ -3032,11 +3032,11 @@ SPEC CHECKSUMS:
30323032
React-Mapbuffer: 33f678ee25b6c0ee2b01b1ecec08e3e02424cefe
30333033
React-microtasksnativemodule: 44b44a4d3cd6ffb85d928abf741acdc26722de2e
30343034
react-native-background-timer: 17ea5e06803401a379ebf1f20505b793ac44d0fe
3035-
react-native-cometchat-ui-kit: f4bb042723039a858ead1054c873075287c5bf37
3035+
react-native-cometchat-ui-kit: 9ac96e94418f8fccb22ce1e30c3a24168b42bab3
30363036
react-native-netinfo: f0a9899081c185db1de5bb2fdc1c88c202a059ac
30373037
react-native-safe-area-context: 6d8a7b750e496e37bda47c938320bf2c734d441f
30383038
react-native-video: f0566c7e82ba660f656c3269436f297a3f6a02d9
3039-
react-native-webrtc: 11de1ec579eddb59672126788ca9ff82805eadcc
3039+
react-native-webrtc: b5062b745a26c99835efdf0d6c027c9b2ee7ddbc
30403040
React-NativeModulesApple: b5d18bc109c45c9a1c6b71664991b5cc3adc4e48
30413041
React-oscompat: 93b5535ea7f7dff46aaee4f78309a70979bdde9d
30423042
React-perflogger: a03d913e3205b00aee4128082abe42fd45ce0c98

examples/SampleApp/ios/SampleApp.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
"$(inherited)",
269269
"@executable_path/Frameworks",
270270
);
271-
MARKETING_VERSION = v5.2.5;
271+
MARKETING_VERSION = v5.2.6;
272272
OTHER_LDFLAGS = (
273273
"$(inherited)",
274274
"-ObjC",
@@ -296,7 +296,7 @@
296296
"$(inherited)",
297297
"@executable_path/Frameworks",
298298
);
299-
MARKETING_VERSION = v5.2.5;
299+
MARKETING_VERSION = v5.2.6;
300300
OTHER_LDFLAGS = (
301301
"$(inherited)",
302302
"-ObjC",

examples/SampleApp/package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/SampleApp/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sample-app",
3-
"version": "5.2.5",
3+
"version": "5.2.6",
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"@cometchat/calls-sdk-react-native": "^4.4.0",
1414
"@cometchat/chat-sdk-react-native": "^4.0.18",
15-
"@cometchat/chat-uikit-react-native": "^5.2.5",
15+
"@cometchat/chat-uikit-react-native": "^5.2.6",
1616
"@react-native-async-storage/async-storage": "^2.2.0",
1717
"@react-native-clipboard/clipboard": "^1.16.3",
1818
"@react-native-community/datetimepicker": "^8.4.5",
@@ -33,7 +33,7 @@
3333
"react-native-svg": "^15.13.0",
3434
"react-native-video": "^6.16.1",
3535
"react-native-vision-camera": "^4.7.2",
36-
"react-native-webrtc": "^124.0.6",
36+
"react-native-webrtc": "^124.0.7",
3737
"zustand": "^5.0.8"
3838
},
3939
"devDependencies": {

examples/SampleApp/src/components/calls/CallDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export const CallDetails: React.FC<Props> = ({route, navigation}) => {
320320

321321
return (
322322
<View style={{flex: 1, backgroundColor: theme.color.background1}}>
323-
<View style={{flex: 1}}>
323+
<View style={{flex: 1, paddingBottom: theme.spacing.padding.p3}}>
324324
<View
325325
style={{
326326
flexDirection: 'row',

examples/SampleApp/src/components/calls/CallHistory.tsx

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import {
55
useTheme,
66
useCometChatTranslation,
77
useLocalizedDate,
8-
localizedDateHelperInstance,
98
LocalizedDateHelper
109
} from '@cometchat/chat-uikit-react-native';
1110
import React, { JSX, useCallback, useEffect, useMemo, useRef, useState } from 'react';
12-
import { FlatList, Text, View } from 'react-native';
11+
import { ActivityIndicator, FlatList, Text, View } from 'react-native';
1312
import { CallDetailHelper } from './CallDetailHelper';
1413
import { Icon } from '@cometchat/chat-uikit-react-native';
1514

@@ -23,6 +22,8 @@ export const CallHistory = (props: { user?: any; group?: any }) => {
2322
const { formatDate } = useLocalizedDate();
2423

2524
const [list, setList] = useState<any[]>([]);
25+
const [loading, setLoading] = useState<boolean>(true);
26+
const [isFetchingMore, setIsFetchingMore] = useState<boolean>(false);
2627

2728
const loggedInUser = useRef<CometChat.User | any>(null);
2829
const callRequestBuilderRef = useRef<any>(null);
@@ -42,16 +43,23 @@ export const CallHistory = (props: { user?: any; group?: any }) => {
4243
}
4344

4445
const fetchCallLogHistory = () => {
46+
if (!callRequestBuilderRef.current || isFetchingMore) {
47+
return;
48+
}
49+
setIsFetchingMore(true);
4550
callRequestBuilderRef.current
4651
.fetchNext()
4752
.then((CallLogHistory: any) => {
48-
console.log(CallLogHistory.length);
4953
if (CallLogHistory.length > 0) {
50-
setList([...list, ...CallLogHistory]);
54+
setList(prev => [...prev, ...CallLogHistory]);
5155
}
5256
})
5357
.catch((err: any) => {
54-
//onError && onError(err);
58+
// onError && onError(err);
59+
})
60+
.finally(() => {
61+
setLoading(false);
62+
setIsFetchingMore(false);
5563
});
5664
};
5765

@@ -63,7 +71,8 @@ export const CallHistory = (props: { user?: any; group?: any }) => {
6371
fetchCallLogHistory();
6472
})
6573
.catch((e: any) => {
66-
//onError && onError(e);
74+
// onError && onError(e);
75+
setLoading(false);
6776
});
6877
}, []);
6978

@@ -224,6 +233,21 @@ export const CallHistory = (props: { user?: any; group?: any }) => {
224233
keyExtractor={(item, index) => item.sessionId + '_' + index}
225234
renderItem={_render}
226235
onEndReached={fetchCallLogHistory}
236+
onEndReachedThreshold={0.5}
237+
ListEmptyComponent={
238+
loading ? (
239+
<View
240+
style={{
241+
flex: 1,
242+
height: 300,
243+
justifyContent: 'center',
244+
alignItems: 'center',
245+
}}
246+
>
247+
<ActivityIndicator size="large" color={theme.color.primary} />
248+
</View>
249+
) : null
250+
}
227251
/>
228252
);
229253
};

examples/SampleApp/src/components/conversations/screens/AddMember.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ const AddMember: React.FC = () => {
136136

137137
// If all succeeded, emit individual events for each member
138138
if (addedMembers.length > 0) {
139-
group.setMembersCount(group.getMembersCount() + addedMembers.length);
139+
const groupInfo = await CometChat.getGroup(group.getGuid());
140+
group.setMembersCount(groupInfo.getMembersCount());
140141
// Create separate action for each added member
141142
addedMembers.forEach(member => {
142143
const action: CometChat.Action = new CometChat.Action(

0 commit comments

Comments
 (0)