isEventCancelled method
checks if an event is cancelled
Implementation
bool isEventCancelled(EventNotificationModel _event) {
EventInfo? _creatorInfo;
if (compareAtSign(_event.atsignCreator!,
AtClientManager.getInstance().atClient.getCurrentAtSign()!)) {
_creatorInfo = getMyEventInfo(_event);
} else {
_creatorInfo =
getOtherMemberEventInfo(_event.key!, _event.atsignCreator!);
}
if (_creatorInfo != null) {
return _creatorInfo.isExited;
} else {
return _event.isCancelled!;
}
}