diff --git a/lang/main.json b/lang/main.json index c97157d1e..a79d872c2 100644 --- a/lang/main.json +++ b/lang/main.json @@ -563,6 +563,7 @@ "next": "Upcoming", "nextMeeting": "next meeting", "now": "Now", + "ongoingMeeting": "ongoing meeting", "permissionButton": "Open settings", "permissionMessage": "Calendar permission is required to list your meetings in the app." }, diff --git a/react/features/calendar-sync/components/ConferenceNotification.native.js b/react/features/calendar-sync/components/ConferenceNotification.native.js index d7eeffc77..6ce241591 100644 --- a/react/features/calendar-sync/components/ConferenceNotification.native.js +++ b/react/features/calendar-sync/components/ConferenceNotification.native.js @@ -110,6 +110,12 @@ class ConferenceNotification extends Component<Props, State> { const { t } = this.props; if (event) { + const now = Date.now(); + const label + = event.startDate < now && event.endDate > now + ? 'calendarSync.ongoingMeeting' + : 'calendarSync.nextMeeting'; + return ( <View style = { [ @@ -126,7 +132,7 @@ class ConferenceNotification extends Component<Props, State> { styles.notificationTextContainer }> <Text style = { styles.notificationText }> - { t('calendarSync.nextMeeting') } + { t(label) } </Text> <Text style = { styles.notificationText }> {