diff --git a/app/i18n/locales/ar.json b/app/i18n/locales/ar.json index 896d4d0d1..0f6eebaa9 100644 --- a/app/i18n/locales/ar.json +++ b/app/i18n/locales/ar.json @@ -328,7 +328,6 @@ "N_users": "{{n}} مستخدمين", "N_channels": "{{n}} القنوات", "Name": "اسم", - "Navigation_history": "تاريخ التصفح", "Never": "أبداً", "New_Message": "رسالة جديدة", "New_Password": "كلمة مرور جديدة", diff --git a/app/i18n/locales/de.json b/app/i18n/locales/de.json index 5a6fe2bda..8bb4dee5a 100644 --- a/app/i18n/locales/de.json +++ b/app/i18n/locales/de.json @@ -330,7 +330,6 @@ "N_users": "{{n}} Benutzer", "N_channels": "{{n}} Kanäle", "Name": "Name", - "Navigation_history": "Navigations-Verlauf", "Never": "Niemals", "New_Message": "Neue Nachricht", "New_Password": "Neues Kennwort", diff --git a/app/i18n/locales/en.json b/app/i18n/locales/en.json index 39c56be76..f7e5a5493 100644 --- a/app/i18n/locales/en.json +++ b/app/i18n/locales/en.json @@ -331,7 +331,6 @@ "N_users": "{{n}} users", "N_channels": "{{n}} channels", "Name": "Name", - "Navigation_history": "Navigation history", "Never": "Never", "New_Message": "New Message", "New_Password": "New Password", diff --git a/app/i18n/locales/fr.json b/app/i18n/locales/fr.json index 3409b899d..81e8e21b3 100644 --- a/app/i18n/locales/fr.json +++ b/app/i18n/locales/fr.json @@ -330,7 +330,6 @@ "N_users": "{{n}} utilisateurs", "N_channels": "{{n}} canaux", "Name": "Nom", - "Navigation_history": "Historique de navigation", "Never": "Jamais", "New_Message": "Nouveau message", "New_Password": "Nouveau mot de passe", diff --git a/app/i18n/locales/it.json b/app/i18n/locales/it.json index 7b1f1f666..5e9e4f9f7 100644 --- a/app/i18n/locales/it.json +++ b/app/i18n/locales/it.json @@ -322,7 +322,6 @@ "N_people_reacted": "{{n}} persone hanno reagito", "N_users": "{{n}} utenti", "Name": "Nome", - "Navigation_history": "Cronologia di navigazione", "Never": "Mai", "New_Message": "Nuovo messaggio", "New_Password": "Nuova password", diff --git a/app/i18n/locales/nl.json b/app/i18n/locales/nl.json index 08a71b767..aa63fdb74 100644 --- a/app/i18n/locales/nl.json +++ b/app/i18n/locales/nl.json @@ -330,7 +330,6 @@ "N_users": "{{n}} gebruikers", "N_channels": "{{n}} kanalen", "Name": "Naam", - "Navigation_history": "Navigatie geschiedenis", "Never": "Nooit", "New_Message": "Nieuw bericht", "New_Password": "Nieuw wachtwoord", diff --git a/app/i18n/locales/pt-BR.json b/app/i18n/locales/pt-BR.json index 664cf7668..8aa2f5ae0 100644 --- a/app/i18n/locales/pt-BR.json +++ b/app/i18n/locales/pt-BR.json @@ -309,7 +309,6 @@ "N_users": "{{n}} usuários", "N_channels": "{{n}} canais", "Name": "Nome", - "Navigation_history": "Histórico de navegação", "Never": "Nunca", "New_Message": "Nova Mensagem", "New_Password": "Nova Senha", diff --git a/app/i18n/locales/pt-PT.json b/app/i18n/locales/pt-PT.json index f3d23c51e..f2cd45e7b 100644 --- a/app/i18n/locales/pt-PT.json +++ b/app/i18n/locales/pt-PT.json @@ -329,7 +329,6 @@ "N_users": "{{n}} utilizadores", "N_channels": "{{n}} canais", "Name": "Nome", - "Navigation_history": "Histórico de navegação", "Never": "Nunca", "New_Message": "Nova Mensagem", "New_Password": "Nova Palavra-passe", diff --git a/app/i18n/locales/ru.json b/app/i18n/locales/ru.json index 30a22db37..bdf2c161a 100644 --- a/app/i18n/locales/ru.json +++ b/app/i18n/locales/ru.json @@ -330,7 +330,6 @@ "N_users": "{{n}} пользователи", "N_channels": "{{n}} каналов", "Name": "Имя", - "Navigation_history": "История навигации", "Never": "Никогда", "New_Message": "Новое сообщение", "New_Password": "Новый пароль", diff --git a/app/i18n/locales/tr.json b/app/i18n/locales/tr.json index aeb4caba8..cc5651927 100644 --- a/app/i18n/locales/tr.json +++ b/app/i18n/locales/tr.json @@ -323,7 +323,6 @@ "N_people_reacted": "{{n}} kişi tepki verdi", "N_users": "{{n}} kullanıcı", "Name": "İsim", - "Navigation_history": "Gezinti geçmişi", "Never": "Asla", "New_Message": "Yeni İleti", "New_Password": "Yeni Şifre", diff --git a/app/i18n/locales/zh-CN.json b/app/i18n/locales/zh-CN.json index e01368904..24e166b9d 100644 --- a/app/i18n/locales/zh-CN.json +++ b/app/i18n/locales/zh-CN.json @@ -320,7 +320,6 @@ "N_people_reacted": "{{n}} 人回复", "N_users": "{{n}} 位用户", "Name": "名称", - "Navigation_history": "浏览历史记录", "Never": "从不", "New_Message": "新信息", "New_Password": "新密码", diff --git a/app/i18n/locales/zh-TW.json b/app/i18n/locales/zh-TW.json index 85d2690ca..258f8fdf7 100644 --- a/app/i18n/locales/zh-TW.json +++ b/app/i18n/locales/zh-TW.json @@ -321,7 +321,6 @@ "N_people_reacted": "{{n}} 人回复", "N_users": "{{n}} 位使用者", "Name": "名稱", - "Navigation_history": "瀏覽歷史記錄", "Never": "從不", "New_Message": "新訊息", "New_Password": "新密碼", diff --git a/app/lib/rocketchat.js b/app/lib/rocketchat.js index 269c4be77..239487b1b 100644 --- a/app/lib/rocketchat.js +++ b/app/lib/rocketchat.js @@ -1138,10 +1138,6 @@ const RocketChat = { // RC 0.36.0 return this.methodCallWrapper('livechat:transfer', transferData); }, - getPagesLivechat(rid, offset) { - // RC 2.3.0 - return this.sdk.get(`livechat/visitors.pagesVisited/${rid}?count=50&offset=${offset}`); - }, getDepartmentInfo(departmentId) { // RC 2.2.0 return this.sdk.get(`livechat/department/${departmentId}?includeAgents=false`); diff --git a/app/stacks/InsideStack.tsx b/app/stacks/InsideStack.tsx index 97b3b25de..fce844a4a 100644 --- a/app/stacks/InsideStack.tsx +++ b/app/stacks/InsideStack.tsx @@ -21,7 +21,6 @@ import MessagesView from '../views/MessagesView'; import AutoTranslateView from '../views/AutoTranslateView'; import DirectoryView from '../views/DirectoryView'; import NotificationPrefView from '../views/NotificationPreferencesView'; -import VisitorNavigationView from '../views/VisitorNavigationView'; import ForwardLivechatView from '../views/ForwardLivechatView'; import LivechatEditView from '../views/LivechatEditView'; import PickerView from '../views/PickerView'; @@ -114,11 +113,6 @@ const ChatsStackNavigator = () => { component={NotificationPrefView} options={NotificationPrefView.navigationOptions} /> - { component={NotificationPrefView} options={NotificationPrefView.navigationOptions} /> - ) : null} - - {['l'].includes(t) && !this.isOmnichannelPreview ? ( - <> - - this.onPressTouchable({ - route: 'VisitorNavigationView', - params: { rid } - }) - } - left={() => } - showActionIndicator - /> - - - ) : null} {this.renderLastSection()} diff --git a/app/views/VisitorNavigationView.js b/app/views/VisitorNavigationView.js deleted file mode 100644 index 8a478d973..000000000 --- a/app/views/VisitorNavigationView.js +++ /dev/null @@ -1,93 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { FlatList, StyleSheet, Text } from 'react-native'; -import PropTypes from 'prop-types'; - -import { withTheme } from '../theme'; -import RocketChat from '../lib/rocketchat'; -import { themes } from '../constants/colors'; -import openLink from '../utils/openLink'; -import I18n from '../i18n'; -import debounce from '../utils/debounce'; -import * as List from '../containers/List'; -import SafeAreaView from '../containers/SafeAreaView'; -import sharedStyles from './Styles'; - -const styles = StyleSheet.create({ - noResult: { - fontSize: 16, - paddingVertical: 56, - ...sharedStyles.textSemibold, - ...sharedStyles.textAlignCenter - } -}); - -const Item = ({ item }) => ( - openLink(item.navigation?.page?.location?.href)} - translateTitle={false} - /> -); -Item.propTypes = { - item: PropTypes.object -}; - -const VisitorNavigationView = ({ route, theme }) => { - let offset; - let total = 0; - const [pages, setPages] = useState([]); - - const getPages = async () => { - const rid = route.params?.rid; - if (rid) { - try { - const result = await RocketChat.getPagesLivechat(rid, offset); - if (result.success) { - setPages(result.pages); - offset = result.pages.length; - ({ total } = result); - } - } catch { - // do nothig - } - } - }; - - useEffect(() => { - getPages(); - }, []); - - const onEndReached = debounce(() => { - if (pages.length <= total) { - getPages(); - } - }, 300); - - return ( - - } - ItemSeparatorComponent={List.Separator} - ListFooterComponent={List.Separator} - ListHeaderComponent={List.Separator} - contentContainerStyle={List.styles.contentContainerStyleFlatList} - ListEmptyComponent={() => ( - {I18n.t('No_results_found')} - )} - keyExtractor={item => item} - onEndReached={onEndReached} - onEndReachedThreshold={5} - /> - - ); -}; -VisitorNavigationView.propTypes = { - theme: PropTypes.string, - route: PropTypes.object -}; -VisitorNavigationView.navigationOptions = { - title: I18n.t('Navigation_history') -}; - -export default withTheme(VisitorNavigationView);