Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(conference): calendar updates (#13020)
Calinteodor99d601274374
diff --git a/react/features/base/react/components/native/NavigateSectionListItem.js b/react/features/base/react/components/native/NavigateSectionListItem.jsindex 509a452a87..6b216906b7 100644--- a/react/features/base/react/components/native/NavigateSectionListItem.js+++ b/react/features/base/react/components/native/NavigateSectionListItem.js@@ -2,10 +2,12 @@import React, { Component } from 'react';+import { IconPlus } from '../../../icons';+import IconButton from '../../../ui/components/native/IconButton';+import { BUTTON_TYPES } from '../../../ui/constants.any';import type { Item } from '../../Types';import AvatarListItem from './AvatarListItem';-import Container from './Container';import Text from './Text';import styles from './styles';@@ -99,11 +101,10 @@ export default class NavigateSectionListItem extends Component<Props> {const { secondaryAction } = this.props;return (- <Container- onClick = { secondaryAction }- style = { styles.secondaryActionContainer }>- <Text style = { styles.secondaryActionLabel }>+</Text>- </Container>+ <IconButton+ onPress = { secondaryAction }+ src = { IconPlus }+ type = { BUTTON_TYPES.PRIMARY } />);}diff --git a/react/features/base/react/components/native/styles.js b/react/features/base/react/components/native/styles.jsindex 226e46e3db..3c0ff14f5e 100644--- a/react/features/base/react/components/native/styles.js+++ b/react/features/base/react/components/native/styles.js@@ -1,10 +1,8 @@// @flow-import { BoxModel, ColorPalette } from '../../../styles';import BaseTheme from '../../../ui/components/BaseTheme.native';const OVERLAY_FONT_COLOR = 'rgba(255, 255, 255, 0.6)';-const SECONDARY_ACTION_BUTTON_SIZE = 30;const BUTTON_HEIGHT = BaseTheme.spacing[7];const BUTTON_WIDTH = BaseTheme.spacing[7];@@ -106,28 +104,13 @@ const SECTION_LIST_STYLES = {color: OVERLAY_FONT_COLOR},- secondaryActionContainer: {- alignItems: 'center',- backgroundColor: ColorPalette.blue,- borderRadius: 3,- height: SECONDARY_ACTION_BUTTON_SIZE,- justifyContent: 'center',- margin: BoxModel.margin * 0.5,- marginRight: BoxModel.margin,- width: SECONDARY_ACTION_BUTTON_SIZE- },-- secondaryActionLabel: {- color: ColorPalette.white- },-touchableView: {flexDirection: 'row'}};export const TINTED_VIEW_DEFAULT = {- backgroundColor: ColorPalette.appBackground,+ backgroundColor: BaseTheme.palette.uiBackground,opacity: 0.8};diff --git a/react/features/conference/middleware.ts b/react/features/conference/middleware.tsindex a1b675b199..7dc9db80ab 100644--- a/react/features/conference/middleware.ts+++ b/react/features/conference/middleware.ts@@ -185,17 +185,19 @@ function _maybeDisplayCalendarNotification({ dispatch, getState }: IStore) {return;}- for (const event of eventList) {+ if (eventList?.length) {- const eventURL- = event?.url && getURLWithoutParamsNormalized(new URL(event.url));+ for (const event of eventList) {+ const eventURL+ = event?.url && getURLWithoutParamsNormalized(new URL(event.url));- if (eventURL && eventURL !== currentConferenceURL) {- // @ts-ignore- if ((!eventToShow && event.startDate > now && event.startDate < now + ALERT_MILLISECONDS)+ if (eventURL && eventURL !== currentConferenceURL) {// @ts-ignore- || (event.startDate < now && event.endDate > now)) {- eventToShow = event;+ if ((!eventToShow && event.startDate > now && event.startDate < now + ALERT_MILLISECONDS)+ // @ts-ignore+ || (event.startDate < now && event.endDate > now)) {+ eventToShow = event;+ }}}}