TF-2182 Fix no blue bar for calendar events
(cherry picked from commit 7ea91d59e860dbd8f5bd38cefd76ca61bc4cc4e3)
This commit is contained in:
@@ -15,7 +15,7 @@ class CalendarEventAPI {
|
||||
|
||||
CalendarEventAPI(this._httpClient);
|
||||
|
||||
Future<List<CalendarEvent>> parse(AccountId accountId, Set<Id> blobIds) async {
|
||||
Future<Map<Id, List<CalendarEvent>>> parse(AccountId accountId, Set<Id> blobIds) async {
|
||||
final requestBuilder = JmapRequestBuilder(_httpClient, ProcessingInvocation());
|
||||
final calendarEventParseMethod = CalendarEventParseMethod(accountId, blobIds);
|
||||
final calendarEventParseInvocation = requestBuilder.invocation(calendarEventParseMethod);
|
||||
@@ -29,7 +29,7 @@ class CalendarEventAPI {
|
||||
CalendarEventParseResponse.deserialize);
|
||||
|
||||
if (calendarEventParseResponse?.parsed?.isNotEmpty == true) {
|
||||
return calendarEventParseResponse!.parsed!.values.toList();
|
||||
return calendarEventParseResponse!.parsed!;
|
||||
} else if (calendarEventParseResponse?.notParsable?.isNotEmpty == true) {
|
||||
throw NotParsableCalendarEventException();
|
||||
} else if (calendarEventParseResponse?.notFound?.isNotEmpty == true) {
|
||||
|
||||
Reference in New Issue
Block a user