| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * @package VikBooking |
| 4 | 4 | * @subpackage core |
| 5 | 5 | * @author E4J s.r.l. |
| 6 | - * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. | |
| 6 | + * @copyright Copyright (C) 2026 E4J s.r.l. All Rights Reserved. | |
| 7 | 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | 8 | * @link https://vikwp.com |
| 9 | 9 | */ |
| 10 | 10 | |
| @@ -18,8 +18,9 @@ | ||
| 18 | 18 | */ |
| 19 | 19 | class VBOChatUserOperator extends VBOChatUseraware implements VBOChatNotifiable |
| 20 | 20 | { |
| 21 | 21 | use VBOChatNotificationEmail; |
| 22 | + use VBOChatNotificationApp; | |
| 22 | 23 | |
| 23 | 24 | /** @var object */ |
| 24 | 25 | protected $operator; |
| 25 | 26 | |
| @@ -109,10 +110,18 @@ | ||
| 109 | 110 | if (!empty($this->operator->email)) { |
| 110 | 111 | /** |
| 111 | 112 | * If the e-mail address exists, send a notification to this operator. |
| 112 | 113 | * |
| 113 | - * @see VBOChatNotificationWebpush | |
| 114 | + * @see VBOChatNotificationEmail | |
| 114 | 115 | */ |
| 115 | 116 | $this->sendEmailNotification($message, $this->operator->email, $this->getName()); |
| 117 | + | |
| 118 | + /** | |
| 119 | + * Send notification to the mobile APP as well. | |
| 120 | + * | |
| 121 | + * @since 1.8.15 | |
| 122 | + * @see VBOChatNotificationApp | |
| 123 | + */ | |
| 124 | + $this->scheduleAppNotification($message, $this->operator->email); | |
| 116 | 125 | } |
| 117 | 126 | } |
| 118 | 127 | } |