diff --git a/lib/Controller/ImportController.php b/lib/Controller/ImportController.php index 0aff2d5ec..ff0b28fb0 100644 --- a/lib/Controller/ImportController.php +++ b/lib/Controller/ImportController.php @@ -171,18 +171,24 @@ public function import(int $fileId, ?string $addressBookUri = null): DataRespons } if ($skipped === 0) { - $message = $this->l10n->n( - 'Imported %n contact', - 'Imported %n contacts', - count($imported), - ); + $message = [ + 'version' => 0.1, + 'tooltip' => $this->l10n->n( + 'Imported %n contact', + 'Imported %n contacts', + count($imported) + ) + ]; } else { - $message = $this->l10n->n( - 'Imported %n contact (skipped %d)', - 'Imported %n contacts (skipped %d)', - count($imported), - [$skipped], - ); + $message = [ + 'version' => 0.1, + 'tooltip' => $this->l10n->n( + 'Imported %n contact (skipped %d)', + 'Imported %n contacts (skipped %d)', + count($imported), + [$skipped], + ) + ]; } return new DataResponse($message); }