| @@ -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 | } |