diff --git a/lib/src/entities/chat.ts b/lib/src/entities/chat.ts index 9d5f523..75dc3b1 100644 --- a/lib/src/entities/chat.ts +++ b/lib/src/entities/chat.ts @@ -72,8 +72,8 @@ export class Chat { this.errorLogger = new ErrorLogger(errorLogger) try { - if (storeUserActivityInterval && storeUserActivityInterval < 600000) { - throw "storeUserActivityInterval must be at least 600000ms" + if (storeUserActivityInterval && storeUserActivityInterval < 60000) { + throw "storeUserActivityInterval must be at least 60000ms" } if (pushNotifications?.deviceGateway === "apns2" && !pushNotifications?.apnsTopic) { diff --git a/samples/react-native-group-chat/screens/ordinary/new-chat-screen/NewChatScreen.tsx b/samples/react-native-group-chat/screens/ordinary/new-chat-screen/NewChatScreen.tsx index dbee185..16bf335 100644 --- a/samples/react-native-group-chat/screens/ordinary/new-chat-screen/NewChatScreen.tsx +++ b/samples/react-native-group-chat/screens/ordinary/new-chat-screen/NewChatScreen.tsx @@ -51,7 +51,7 @@ export function NewChatScreen({ navigation }: StackScreenProps user.name?.toLowerCase().includes(searchText.toLowerCase()))} renderItem={({ item: user }) => ( } + avatar={} title={user.name || user.id} onPress={() => openChat(user)} />