|
@@ -110,6 +110,12 @@ class ConferenceNotification extends Component<Props, State> {
|
110
|
110
|
const { t } = this.props;
|
111
|
111
|
|
112
|
112
|
if (event) {
|
|
113
|
+ const now = Date.now();
|
|
114
|
+ const label
|
|
115
|
+ = event.startDate < now && event.endDate > now
|
|
116
|
+ ? 'calendarSync.ongoingMeeting'
|
|
117
|
+ : 'calendarSync.nextMeeting';
|
|
118
|
+
|
113
|
119
|
return (
|
114
|
120
|
<View
|
115
|
121
|
style = { [
|
|
@@ -126,7 +132,7 @@ class ConferenceNotification extends Component<Props, State> {
|
126
|
132
|
styles.notificationTextContainer
|
127
|
133
|
}>
|
128
|
134
|
<Text style = { styles.notificationText }>
|
129
|
|
- { t('calendarSync.nextMeeting') }
|
|
135
|
+ { t(label) }
|
130
|
136
|
</Text>
|
131
|
137
|
<Text style = { styles.notificationText }>
|
132
|
138
|
{
|