isActionRequired method
checks if any action is required for the given event
Implementation
bool isActionRequired(EventNotificationModel event) {
if (isEventCancelled(event)) return true;
/// for creator it can only be cancelled state
if (compareAtSign(event.atsignCreator!,
AtClientManager.getInstance().atClient.getCurrentAtSign()!)) {
return false;
}
var _eventInfo = getMyEventInfo(event);
if (_eventInfo == null) {
return true;
}
if (_eventInfo.isExited) {
return true;
}
if (!_eventInfo.isAccepted) {
return true;
} else {
return false;
}
}