TF-2057 Add event hyper link detail widget
(cherry picked from commit 8974e0ab37c2fa0b9097cae638b983e8600db4b2)
This commit is contained in:
@@ -269,4 +269,20 @@ extension CalendarEventExtension on CalendarEvent {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
List<String> get videoConferences {
|
||||
if (extensionFields != null && extensionFields!.mapFields.isNotEmpty) {
|
||||
final videoConferences = extensionFields!.mapFields['X-OPENPAAS-VIDEOCONFERENCE'];
|
||||
if (videoConferences != null) {
|
||||
final videoConferencesNotEmpty = videoConferences
|
||||
.whereNotNull()
|
||||
.where((link) => link.isNotEmpty)
|
||||
.toList();
|
||||
log('CalendarEventExtension::getListVideoConference: $videoConferencesNotEmpty');
|
||||
return videoConferencesNotEmpty;
|
||||
}
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user