Skip to content

Commit df40672

Browse files
authored
chore: Merge 4.60.0 into master (#6342)
2 parents 022467c + d3d6a00 commit df40672

File tree

121 files changed

+2451
-1202
lines changed

Some content is hidden

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

121 files changed

+2451
-1202
lines changed

.eslintrc.js

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -196,24 +196,8 @@ module.exports = {
196196
'react/jsx-no-undef': 'error',
197197
'react/jsx-fragments': ['error', 'syntax'],
198198
'@typescript-eslint/ban-ts-comment': 'off',
199-
'@typescript-eslint/indent': [
200-
'warn',
201-
'tab',
202-
{
203-
SwitchCase: 1
204-
}
205-
],
206-
'@typescript-eslint/no-extra-parens': [
207-
'warn',
208-
'all',
209-
{
210-
conditionalAssign: true,
211-
nestedBinaryExpressions: false,
212-
returnAssign: true,
213-
ignoreJSX: 'all',
214-
enforceForArrowConditionals: false
215-
}
216-
],
199+
'@typescript-eslint/indent': 'off',
200+
'@typescript-eslint/no-extra-parens': 'off',
217201
'@typescript-eslint/no-dupe-class-members': 'error',
218202
'@typescript-eslint/no-explicit-any': 'off',
219203
'@typescript-eslint/no-unused-vars': [

android/app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ android {
8888
minSdkVersion rootProject.ext.minSdkVersion
8989
targetSdkVersion rootProject.ext.targetSdkVersion
9090
versionCode VERSIONCODE as Integer
91-
versionName "4.59.0"
91+
versionName "4.60.0"
9292
vectorDrawables.useSupportLibrary = true
9393
manifestPlaceholders = [BugsnagAPIKey: BugsnagAPIKey as String]
9494
missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60" // See note below!
@@ -145,7 +145,6 @@ dependencies {
145145
implementation jscFlavor
146146
}
147147

148-
implementation project(':@react-native-community_viewpager')
149148
implementation project(':react-native-notifications')
150149
implementation "com.google.firebase:firebase-messaging:23.3.1"
151150
implementation project(':watermelondb-jsi')
236 Bytes
Binary file not shown.

android/app/src/main/java/chat/rocket/reactnative/MainApplication.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ import com.bugsnag.android.Bugsnag
2424
import expo.modules.ApplicationLifecycleDispatcher
2525
import chat.rocket.reactnative.networking.SSLPinningPackage;
2626
import chat.rocket.reactnative.notification.CustomPushNotification;
27-
import com.reactnativecommunity.viewpager.RNCViewPagerPackage;
2827

2928
open class MainApplication : Application(), ReactApplication, INotificationsApplication {
3029

3130
override val reactNativeHost: ReactNativeHost =
3231
object : DefaultReactNativeHost(this) {
3332
override fun getPackages(): List<ReactPackage> =
3433
PackageList(this).packages.apply {
35-
// Packages that cannot be autolinked yet can be added manually here, for example:
36-
add(RNCViewPagerPackage())
3734
add(SSLPinningPackage())
3835
}
3936

android/settings.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
rootProject.name = 'RocketChatRN'
2-
include ':@react-native-community_viewpager'
3-
project(':@react-native-community_viewpager').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/viewpager/android')
42
include ':watermelondb-jsi'
53
project(':watermelondb-jsi').projectDir = new File(rootProject.projectDir, '../node_modules/@nozbe/watermelondb/native/android-jsi')
64
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)

app/actions/actionsTypes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ export const CREATE_DISCUSSION = createRequestTypes('CREATE_DISCUSSION', [...def
5353
export const SELECTED_USERS = createRequestTypes('SELECTED_USERS', ['ADD_USER', 'REMOVE_USER', 'RESET', 'SET_LOADING']);
5454
export const SERVER = createRequestTypes('SERVER', [
5555
...defaultTypes,
56+
'CLEAR',
5657
'SELECT_SUCCESS',
5758
'SELECT_REQUEST',
5859
'SELECT_FAILURE',
60+
'SELECT_CANCEL',
5961
'INIT_ADD',
6062
'FINISH_ADD'
6163
]);

app/actions/server.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ export function selectServerFailure(): Action {
6565
};
6666
}
6767

68+
export function selectServerCancel(): Action {
69+
return {
70+
type: SERVER.SELECT_CANCEL
71+
};
72+
}
73+
74+
export function selectServerClear(): Action {
75+
return {
76+
type: SERVER.CLEAR
77+
};
78+
}
79+
6880
export function serverRequest(server: string, username: string | null = null, fromServerHistory = false): IServerRequestAction {
6981
return {
7082
type: SERVER.REQUEST,

app/containers/CollapsibleText/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { TextStyle, Text, StyleSheet } from 'react-native';
44
import sharedStyles from '../../views/Styles';
55
import { useTheme } from '../../theme';
66
import I18n from '../../i18n';
7-
import { previewFormatText } from '../../lib/helpers/previewFormatText';
7+
import usePreviewFormatText from '../../lib/hooks/usePreviewFormatText';
88

99
interface ICollapsibleText {
1010
msg?: string;
@@ -29,12 +29,13 @@ const CollapsibleText = ({ msg, style = [], linesToTruncate = 1 }: ICollapsibleT
2929
const [showTruncated, setShowTruncated] = useState(true);
3030

3131
const { colors } = useTheme();
32+
const formattedText = usePreviewFormatText(msg ?? '');
3233

3334
if (!msg) {
3435
return null;
3536
}
3637

37-
const m = previewFormatText(msg);
38+
const m = formattedText;
3839

3940
if (truncatedText && showTruncated) {
4041
return (

app/containers/CustomIcon/mappedIcons.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ export const mappedIcons = {
5050
'chat-close': 59701,
5151
'chat-forward': 59702,
5252
'check': 59703,
53+
'check-double': 59875,
54+
'check-single': 59876,
5355
'checkbox-checked': 59654,
5456
'checkbox-unchecked': 59653,
5557
'chevron-down': 59704,

app/containers/CustomIcon/selection.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)