Skip to content

Commit 9ec075d

Browse files
Client integration: correct tooltip format
1 parent 0c1dd9f commit 9ec075d

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

lib/Controller/ImportController.php

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,24 @@ public function import(int $fileId, ?string $addressBookUri = null): DataRespons
171171
}
172172

173173
if ($skipped === 0) {
174-
$message = $this->l10n->n(
175-
'Imported %n contact',
176-
'Imported %n contacts',
177-
count($imported),
178-
);
174+
$message = [
175+
'version' => 0.1,
176+
'tooltip' => $this->l10n->n(
177+
'Imported %n contact',
178+
'Imported %n contacts',
179+
count($imported)
180+
)
181+
];
179182
} else {
180-
$message = $this->l10n->n(
181-
'Imported %n contact (skipped %d)',
182-
'Imported %n contacts (skipped %d)',
183-
count($imported),
184-
[$skipped],
185-
);
183+
$message = [
184+
'version' => 0.1,
185+
'tooltip' => $this->l10n->n(
186+
'Imported %n contact (skipped %d)',
187+
'Imported %n contacts (skipped %d)',
188+
count($imported),
189+
[$skipped],
190+
)
191+
];
186192
}
187193
return new DataResponse($message);
188194
}

0 commit comments

Comments
 (0)