Skip to content

Commit

Permalink
feat(lib): make minimum interval to be one minute
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-suwala committed Sep 21, 2023
1 parent b47ab33 commit 08933f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/src/entities/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function NewChatScreen({ navigation }: StackScreenProps<HomeStackParamLis
data={users.filter((user) => user.name?.toLowerCase().includes(searchText.toLowerCase()))}
renderItem={({ item: user }) => (
<ListItem
avatar={<Avatar source={user} />}
avatar={<Avatar source={user} showIndicator />}
title={user.name || user.id}
onPress={() => openChat(user)}
/>
Expand Down

0 comments on commit 08933f3

Please sign in to comment.