TF-2182 Fix no blue bar for calendar events
(cherry picked from commit 7ea91d59e860dbd8f5bd38cefd76ca61bc4cc4e3)
This commit is contained in:
@@ -9,6 +9,9 @@ import 'package:uri/uri.dart';
|
||||
|
||||
class Attachment with EquatableMixin {
|
||||
|
||||
static const String eventICSSubtype = 'ics';
|
||||
static const String eventCalendarSubtype = 'calendar';
|
||||
|
||||
final PartId? partId;
|
||||
final Id? blobId;
|
||||
final UnsignedInt? size;
|
||||
@@ -50,8 +53,6 @@ class Attachment with EquatableMixin {
|
||||
}
|
||||
}
|
||||
|
||||
bool get isCalendarEvent => type?.subtype == 'ics' || type?.subtype == 'calendar';
|
||||
|
||||
@override
|
||||
List<Object?> get props => [partId, blobId, size, name, type, cid, disposition];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user