added premium promotion, dropmail.php, dropattach.php, minor update of other files

This commit is contained in:
Gitea
2025-05-08 05:46:00 +05:30
parent b24bf3d1f6
commit f8ce844625
10 changed files with 187 additions and 12 deletions

View File

@@ -66,6 +66,10 @@ class Action extends Component
private function showAlert($type, $message): void
{
$check = json_decode(config('app.settings.configuration_settings'))->email_limit;
if (strpos($message, $check) !== false) {
$this->dispatch('promotePremium');
}
$this->dispatch('showAlert', ['type' => $type, 'message' => $message]);
}