fix(calendar): Remove logs with invalid calendar items.
This commit is contained in:
parent
230b2b02fa
commit
4575e7e119
|
@ -6,7 +6,6 @@ import { setCalendarEvents } from './actions';
|
||||||
import { APP_LINK_SCHEME, parseURIString } from '../base/util';
|
import { APP_LINK_SCHEME, parseURIString } from '../base/util';
|
||||||
import { MAX_LIST_LENGTH } from './constants';
|
import { MAX_LIST_LENGTH } from './constants';
|
||||||
|
|
||||||
const logger = require('jitsi-meet-logger').getLogger(__filename);
|
|
||||||
const ALLDAY_EVENT_LENGTH = 23 * 60 * 60 * 1000;
|
const ALLDAY_EVENT_LENGTH = 23 * 60 * 60 * 1000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -143,14 +142,7 @@ function _parseCalendarEntry(event, knownDomains) {
|
||||||
|| (navigator.product !== 'ReactNative'
|
|| (navigator.product !== 'ReactNative'
|
||||||
&& !url
|
&& !url
|
||||||
&& !event.calendarId)) {
|
&& !event.calendarId)) {
|
||||||
logger.debug(
|
// Ignore the event.
|
||||||
'Skipping invalid calendar event',
|
|
||||||
event.title,
|
|
||||||
event.startDate,
|
|
||||||
event.endDate,
|
|
||||||
url,
|
|
||||||
event.calendarId
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
allDay: event.allDay,
|
allDay: event.allDay,
|
||||||
|
|
Loading…
Reference in New Issue