diff --git a/app/Controllers/Notifications.php b/app/Controllers/Notifications.php index 9b441de7..de014307 100755 --- a/app/Controllers/Notifications.php +++ b/app/Controllers/Notifications.php @@ -117,7 +117,7 @@ class Notifications extends BaseController $receiving_status = $success['receiving_status']; $parents_status = $success['receiving_status']; $history_msg = strtolower(gettype($success)) == "string" ? $success : json_encode($success['reponse']); - $tag = (int)$receiving_status === 0 ? 'success' : 'error' ; + $tag = (int)$receiving_status === 1 ? 'success' : 'error' ; session()->setFlashdata($tag, 'Message : ' . $success['message']); $this->logger->info("Whatsapp : Reponse = " . $success['message']); } catch (\Exception $e) {