Skip to content

Commit

Permalink
Merge pull request #20 from AmityCo/develop
Browse files Browse the repository at this point in the history
Release/v0.6.0
  • Loading branch information
ptchayap authored Nov 4, 2024
2 parents 5e6f12a + 2457a73 commit 138ca4d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- amityco-react-native-cli-chat-ui-kit (0.4.0):
- amityco-react-native-cli-chat-ui-kit (0.6.0):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
Expand Down Expand Up @@ -1342,7 +1342,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
amityco-react-native-cli-chat-ui-kit: 6bd071a5b4d3ce60d66a85781e5bbba3013bdb1d
amityco-react-native-cli-chat-ui-kit: caab6213fea51382fb07d87f1f467cdf07ae4f9b
boost: d3f49c53809116a5d38da093a8aa78bf551aed09
DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953
FBLazyVector: f64d1e2ea739b4d8f7e4740cde18089cd97fe864
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amityco/react-native-cli-chat-ui-kit",
"version": "0.5.1",
"version": "0.6.0",
"description": "Chat UIKit",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
10 changes: 8 additions & 2 deletions src/screens/ChatRoom/ChatRoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const ChatRoom: ChatRoomScreenComponentType = ({ route }) => {
disposers.push(
MessageRepository.getMessages(
{ subChannelId: channelId, limit: 10, includeDeleted: true },
({ data: messages, loading, error }) => {
({ data: messages, loading, error, onNextPage, hasNextPage }) => {
if (!loading && messages) {
// filter syned message since UIKIT did not support unsync message yet
const syncedMessages = messages.filter(
Expand All @@ -180,7 +180,13 @@ const ChatRoom: ChatRoomScreenComponentType = ({ route }) => {
lastMessage.markRead();
}

setMessagesData({ data: syncedMessages, loading, error });
setMessagesData({
data: syncedMessages,
loading,
error,
onNextPage,
hasNextPage,
});
}
}
)
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@amityco/react-native-cli-chat-ui-kit@workspace:."
dependencies:
"@amityco/ts-sdk-react-native": 6.31.1
"@amityco/ts-sdk-react-native": ^6.31.1
"@commitlint/config-conventional": ^17.0.2
"@evilmartians/lefthook": ^1.5.0
"@react-native-async-storage/async-storage": ^1.22.3
Expand Down Expand Up @@ -98,9 +98,9 @@ __metadata:
languageName: unknown
linkType: soft

"@amityco/ts-sdk-react-native@npm:6.31.1":
version: 6.31.1
resolution: "@amityco/ts-sdk-react-native@npm:6.31.1"
"@amityco/ts-sdk-react-native@npm:^6.31.1":
version: 6.32.1
resolution: "@amityco/ts-sdk-react-native@npm:6.32.1"
dependencies:
"@react-native-async-storage/async-storage": ^1.17.7
"@react-native-community/netinfo": ^9.4.1
Expand All @@ -118,7 +118,7 @@ __metadata:
ts-jest: ^28.0.3
peerDependencies:
react-native: ^0.70.13
checksum: 60bcf7ebcd9bfc51b3946395a47c600e7237cb771a9599104c2af3dc48b2ed93ec27004735d26e42d1bdd4161db9ebf1e334e8f5d4f96218ab63ed9b5819b454
checksum: 60549709cecec5432e158ced027b0ad181183a22c8957981e1003060c4c4de2a7246d47007e3e2de2532062366de5942a991fdc445f32d56bcf2b758dad02cbc
languageName: node
linkType: hard

Expand Down

0 comments on commit 138ca4d

Please sign in to comment.