diff --git a/.circleci/config.yml b/.circleci/config.yml
index 2541bbeb6..c2195c3b2 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -248,7 +248,7 @@ commands:
bundle exec fastlane ios build_official
else
if [[ $KEYSTORE ]]; then
- bundle exec fastlane ios release # TODO: rename
+ bundle exec fastlane ios build_experimental
else
bundle exec fastlane ios build_fork
fi
diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap
index f247b28de..d2bba5818 100644
--- a/__tests__/__snapshots__/Storyshots.test.js.snap
+++ b/__tests__/__snapshots__/Storyshots.test.js.snap
@@ -10220,6 +10220,80 @@ exports[`Storyshots Markdown list Markdown 1`] = `
+
+ Sequential empty spaces
+
+
+
+
+ a b c
+
+
+
a b c d e
+
+ a b c
+
- {msg}
+
0 || tunreadUser?.length) {
- backgroundColor = themes[theme].mentionMeBackground;
+ backgroundColor = themes[theme].mentionMeColor;
} else if (groupMentions > 0 || tunreadGroup?.length) {
- backgroundColor = themes[theme].mentionGroupBackground;
+ backgroundColor = themes[theme].mentionGroupColor;
} else if (tunread?.length > 0) {
- backgroundColor = themes[theme].tunreadBackground;
+ backgroundColor = themes[theme].tunreadColor;
}
return {
diff --git a/app/presentation/UnreadBadge/getUnreadStyle.test.js b/app/presentation/UnreadBadge/getUnreadStyle.test.js
index 9b35ccb9c..a0704b138 100644
--- a/app/presentation/UnreadBadge/getUnreadStyle.test.js
+++ b/app/presentation/UnreadBadge/getUnreadStyle.test.js
@@ -13,7 +13,7 @@ const testsForTheme = (theme) => {
expect(getUnreadStyleUtil({
unread: 1
})).toEqual({
- backgroundColor: themes[theme].unreadBackground,
+ backgroundColor: themes[theme].unreadColor,
color: themes[theme].buttonText
});
});
@@ -22,7 +22,7 @@ const testsForTheme = (theme) => {
expect(getUnreadStyleUtil({
tunread: [1]
})).toEqual({
- backgroundColor: themes[theme].tunreadBackground,
+ backgroundColor: themes[theme].tunreadColor,
color: themes[theme].buttonText
});
});
@@ -32,7 +32,7 @@ const testsForTheme = (theme) => {
unread: 1,
userMentions: 1
})).toEqual({
- backgroundColor: themes[theme].mentionMeBackground,
+ backgroundColor: themes[theme].mentionMeColor,
color: themes[theme].buttonText
});
});
@@ -42,7 +42,7 @@ const testsForTheme = (theme) => {
unread: 1,
groupMentions: 1
})).toEqual({
- backgroundColor: themes[theme].mentionGroupBackground,
+ backgroundColor: themes[theme].mentionGroupColor,
color: themes[theme].buttonText
});
});
@@ -54,7 +54,7 @@ const testsForTheme = (theme) => {
groupMentions: 1,
tunread: [1]
})).toEqual({
- backgroundColor: themes[theme].mentionMeBackground,
+ backgroundColor: themes[theme].mentionMeColor,
color: themes[theme].buttonText
});
expect(getUnreadStyleUtil({
@@ -62,14 +62,14 @@ const testsForTheme = (theme) => {
groupMentions: 1,
tunread: [1]
})).toEqual({
- backgroundColor: themes[theme].mentionGroupBackground,
+ backgroundColor: themes[theme].mentionGroupColor,
color: themes[theme].buttonText
});
expect(getUnreadStyleUtil({
unread: 1,
tunread: [1]
})).toEqual({
- backgroundColor: themes[theme].tunreadBackground,
+ backgroundColor: themes[theme].tunreadColor,
color: themes[theme].buttonText
});
});
diff --git a/app/utils/room.js b/app/utils/room.js
index 8a79d4fb3..7077c73dc 100644
--- a/app/utils/room.js
+++ b/app/utils/room.js
@@ -34,13 +34,13 @@ export const formatDateThreads = date => moment(date).calendar(null, {
export const getBadgeColor = ({ subscription, messageId, theme }) => {
if (subscription?.tunreadUser?.includes(messageId)) {
- return themes[theme].mentionMeBackground;
+ return themes[theme].mentionMeColor;
}
if (subscription?.tunreadGroup?.includes(messageId)) {
- return themes[theme].mentionGroupBackground;
+ return themes[theme].mentionGroupColor;
}
if (subscription?.tunread?.includes(messageId)) {
- return themes[theme].tunreadBackground;
+ return themes[theme].tunreadColor;
}
};
diff --git a/app/views/RoomView/List.js b/app/views/RoomView/List.js
index fc54ee277..4db965d97 100644
--- a/app/views/RoomView/List.js
+++ b/app/views/RoomView/List.js
@@ -53,20 +53,16 @@ class List extends React.Component {
this.count = 0;
this.needsFetch = false;
this.mounted = false;
+ this.animated = false;
this.state = {
loading: true,
end: false,
messages: [],
- refreshing: false,
- animated: false
+ refreshing: false
};
this.query();
this.unsubscribeFocus = props.navigation.addListener('focus', () => {
- if (this.mounted) {
- this.setState({ animated: true });
- } else {
- this.state.animated = true;
- }
+ this.animated = true;
});
console.timeEnd(`${ this.constructor.name } init`);
}
@@ -290,8 +286,7 @@ class List extends React.Component {
// eslint-disable-next-line react/sort-comp
update = () => {
- const { animated } = this.state;
- if (animated) {
+ if (this.animated) {
animateNextTransition();
}
this.forceUpdate();
diff --git a/app/views/RoomView/index.js b/app/views/RoomView/index.js
index ea8164f8a..38a39d979 100644
--- a/app/views/RoomView/index.js
+++ b/app/views/RoomView/index.js
@@ -1008,12 +1008,7 @@ class RoomView extends React.Component {
renderActions = () => {
const { room, readOnly } = this.state;
- const {
- user, navigation
- } = this.props;
- if (!navigation.isFocused()) {
- return null;
- }
+ const { user } = this.props;
return (
<>
(
stories.add('badge', () => (
<>
>
));
@@ -129,7 +129,7 @@ const ThemeStory = ({ theme }) => (
value={{ theme }}
>
);
diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile
index 6b6dd11cc..85d810245 100644
--- a/ios/fastlane/Fastfile
+++ b/ios/fastlane/Fastfile
@@ -42,7 +42,7 @@ platform :ios do
end
desc "Build Experimental app"
- lane :release do
+ lane :build_experimental do
api_key = app_store_connect_api_key(
key_id: "F296L2294Y",
issuer_id: "69a6de8e-75cf-47e3-e053-5b8c7c11a4d1",
@@ -60,11 +60,6 @@ platform :ios do
)
end
- desc "Build fork app"
- lane :build_fork do
- gym(scheme: "RocketChatRN", workspace: "RocketChatRN.xcworkspace", skip_codesigning: true, skip_archive: true)
- end
-
desc "Build Official app"
lane :build_official do
sh "../../scripts/prepare_ios_official.sh"
@@ -100,6 +95,11 @@ platform :ios do
)
end
+ desc "Build fork app"
+ lane :build_fork do
+ gym(scheme: "RocketChatRN", workspace: "RocketChatRN.xcworkspace", skip_codesigning: true, skip_archive: true)
+ end
+
after_all do |lane|
delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"])
end
diff --git a/storybook/stories/Markdown.js b/storybook/stories/Markdown.js
index c24d1ca9b..92c969501 100644
--- a/storybook/stories/Markdown.js
+++ b/storybook/stories/Markdown.js
@@ -26,6 +26,7 @@ d
e`;
+const sequentialEmptySpacesText = 'a b c';
const getCustomEmoji = (content) => {
const customEmoji = {
@@ -69,6 +70,14 @@ export default ({ theme }) => {
/>
+
+
+
+
+
{
numberOfLines={1}
preview
/>
+
(
onReactionPress: () => {},
onDiscussionPress: () => {},
onReactionLongPress: () => {},
- threadBadgeColor: themes.light.tunreadBackground
+ threadBadgeColor: themes.light.tunreadColor
}}
>
{story()}