{
- setQuoteReply({ message: message.id, channel: channelId });
+ setQuoteReply({ message: message.thread_id, channel: channelId });
}}
>
diff --git a/twake/frontend/src/app/views/applications/messages/message/parts/PossiblyPendingAttachment.tsx b/twake/frontend/src/app/views/applications/messages/message/parts/PossiblyPendingAttachment.tsx
index a65eda47c8..8ceb95b22c 100644
--- a/twake/frontend/src/app/views/applications/messages/message/parts/PossiblyPendingAttachment.tsx
+++ b/twake/frontend/src/app/views/applications/messages/message/parts/PossiblyPendingAttachment.tsx
@@ -11,9 +11,10 @@ type PropsType = {
onRemove?: () => void;
type: 'input' | 'message';
large?: boolean;
+ xlarge?: boolean;
};
-export default ({ file, onRemove, type, large }: PropsType) => {
+export default ({ file, onRemove, type, large, xlarge }: PropsType) => {
const { getOnePendingFile } = useUpload();
const id =
@@ -68,6 +69,7 @@ export default ({ file, onRemove, type, large }: PropsType) => {
file={formatedFile}
messageFile={file}
large={large}
+ xlarge={xlarge}
status={status}
progress={progress}
onRemove={onRemove}
diff --git a/twake/frontend/src/app/views/client/channels-bar/Parts/Channel/ChannelIntermediate.tsx b/twake/frontend/src/app/views/client/channels-bar/Parts/Channel/ChannelIntermediate.tsx
index 605f60b9ff..1f765f1730 100644
--- a/twake/frontend/src/app/views/client/channels-bar/Parts/Channel/ChannelIntermediate.tsx
+++ b/twake/frontend/src/app/views/client/channels-bar/Parts/Channel/ChannelIntermediate.tsx
@@ -51,6 +51,7 @@ export default (props: Props): JSX.Element => {
mentions={
notifications.filter(
n =>
+ !n.mention_type ||
(n.mention_type === 'me' &&
['mentions', 'me', 'all'].includes(channel.user_member?.notification_level || '')) ||
(n.mention_type === 'global' &&
diff --git a/twake/frontend/src/app/views/client/channels-bar/Parts/CurrentUser/Notifications/NotificationBell.tsx b/twake/frontend/src/app/views/client/channels-bar/Parts/CurrentUser/Notifications/NotificationBell.tsx
index 3e276814f1..d4752c4aed 100644
--- a/twake/frontend/src/app/views/client/channels-bar/Parts/CurrentUser/Notifications/NotificationBell.tsx
+++ b/twake/frontend/src/app/views/client/channels-bar/Parts/CurrentUser/Notifications/NotificationBell.tsx
@@ -29,18 +29,20 @@ export default (props: PropsType) => {
{
type: 'menu',
text: Languages.t('scenes.app.channelsbar.currentuser.disabling_notifications'),
- onClick: () => NotificationPreferences.deactivateNotificationsUntil(1, 'h'),
+ onClick: () => NotificationPreferences.deactivateNotificationsUntil(1 * 60 * 60 * 1000),
},
{
type: 'menu',
text: '2 hours', // Add translation
- onClick: () => NotificationPreferences.deactivateNotificationsUntil(2, 'h'),
+ onClick: () => NotificationPreferences.deactivateNotificationsUntil(2 * 60 * 60 * 1000),
},
{
type: 'menu',
text: Languages.t('scenes.app.channelsbar.currentuser.disabling_notifications_until'),
onClick: () =>
- NotificationPreferences.deactivateNotificationsUntil(hoursUntilTomorrowMorning, 'h'),
+ NotificationPreferences.deactivateNotificationsUntil(
+ hoursUntilTomorrowMorning * 60 * 60 * 1000,
+ ),
},
{
type: 'menu',
@@ -51,8 +53,8 @@ export default (props: PropsType) => {
),
onClick: () => {
status
- ? NotificationPreferences.deactivateNotificationsUntil(24, 'y')
- : NotificationPreferences.deactivateNotificationsUntil(0, 's');
+ ? NotificationPreferences.deactivateNotificationsUntil(10 * 365 * 24 * 60 * 60 * 1000)
+ : NotificationPreferences.deactivateNotificationsUntil(0);
},
},
{
diff --git a/twake/frontend/src/app/views/client/channels-bar/Parts/Footer/Footer.js b/twake/frontend/src/app/views/client/channels-bar/Parts/Footer/Footer.js
index a911830ade..afd3fcf09f 100755
--- a/twake/frontend/src/app/views/client/channels-bar/Parts/Footer/Footer.js
+++ b/twake/frontend/src/app/views/client/channels-bar/Parts/Footer/Footer.js
@@ -14,13 +14,17 @@ export default class Footer extends React.Component {
super();
this.onpremise = !!((InitService.server_infos || {}).branding || {}).name;
this.menu = [
- { type:"text", text: `Twake v${Version.version_detail}` },
- {
- type: 'menu',
- text: Languages.t('general.help.support', [], 'Support'),
- icon: 'comment',
- onClick: props.onClickHelp,
- },
+ { type: 'text', text: `Twake v${Version.version_detail}` },
+ ...(props.onClickHelp
+ ? [
+ {
+ type: 'menu',
+ text: Languages.t('general.help.support', [], 'Support'),
+ icon: 'comment',
+ onClick: props.onClickHelp,
+ },
+ ]
+ : []),
{
type: 'menu',
text: Languages.t('general.help.documentation', [], 'Documentation'),
diff --git a/twake/frontend/src/app/views/integration/components/apps.js b/twake/frontend/src/app/views/integration/components/apps.js
index 18b45f76cd..9ea65fbcc5 100644
--- a/twake/frontend/src/app/views/integration/components/apps.js
+++ b/twake/frontend/src/app/views/integration/components/apps.js
@@ -38,8 +38,13 @@ export default function Apps(props) {
>
{props.apps.map(item => (
- // eslint-disable-next-line react/jsx-no-target-blank
-
+
{item.name}
diff --git a/twake/frontend/yarn.lock b/twake/frontend/yarn.lock
index 80a325651a..f90bd67bd5 100644
--- a/twake/frontend/yarn.lock
+++ b/twake/frontend/yarn.lock
@@ -4559,6 +4559,13 @@
dependencies:
"@types/react" "^16"
+"@types/react-page-visibility@^6.4.1":
+ version "6.4.1"
+ resolved "https://registry.yarnpkg.com/@types/react-page-visibility/-/react-page-visibility-6.4.1.tgz#21c3bc4a3f310d38d188916cadc55f2bde65f27d"
+ integrity sha512-vNlYAqKhB2SU1HmF9ARFTFZN0NSPzWn8HSjBpFqYuQlJhsb/aSYeIZdygeqfSjAg0PZ70id2IFWHGULJwe59Aw==
+ dependencies:
+ "@types/react" "*"
+
"@types/react-redux@^7.1.20", "@types/react-redux@^7.1.7":
version "7.1.24"
resolved "https://registry.npmjs.org/@types/react-redux/-/react-redux-7.1.24.tgz"
@@ -18245,6 +18252,13 @@ react-outside-click-handler@^1.3.0:
object.values "^1.1.0"
prop-types "^15.7.2"
+react-page-visibility@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/react-page-visibility/-/react-page-visibility-7.0.0.tgz#13dfe604790d061e70b900038bad1ca769a36cbc"
+ integrity sha512-d4Kq/8TtJSr8dQc8EJeAZcSKTrGzC5OPTm6UrMur9BnwP0fgTawI9+Nd+ZGB7vwCfn2yZS0qDF9DR3/QYTGazw==
+ dependencies:
+ prop-types "^15.7.2"
+
react-perfect-scrollbar@^1.5.8:
version "1.5.8"
resolved "https://registry.npmjs.org/react-perfect-scrollbar/-/react-perfect-scrollbar-1.5.8.tgz"
@@ -21011,9 +21025,9 @@ typescript@~3.9.7:
integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==
ua-parser-js@^0.7.18:
- version "0.7.31"
- resolved "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz"
- integrity sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==
+ version "0.7.33"
+ resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.33.tgz#1d04acb4ccef9293df6f70f2c3d22f3030d8b532"
+ integrity sha512-s8ax/CeZdK9R/56Sui0WM6y9OFREJarMRHqLB2EwkovemBxNQ+Bqu8GAsUnVcXKgphb++ghr/B2BZx4mahujPw==
uglify-js@^3.1.4:
version "3.16.0"