mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 08:23:00 +00:00
Fix wrong message count when checking new messages
Regression was introduced in commit: 580e4415e2
This commit is contained in:
@@ -235,7 +235,7 @@ class SmsController extends Controller {
|
||||
|
||||
foreach ($phoneList as $number => $ts) {
|
||||
$fmtPN = PhoneNumberFormatter::format($configuredCountry, $number);
|
||||
$formatedPhoneList[] = $fmtPN;
|
||||
$formatedPhoneList[$number] = $ts;
|
||||
if (isset($contactsSrc[$fmtPN])) {
|
||||
$contacts[$fmtPN] = $contactsSrc[$fmtPN];
|
||||
if (isset($uidsSrc[$fmtPN])) {
|
||||
@@ -248,7 +248,7 @@ class SmsController extends Controller {
|
||||
}
|
||||
}
|
||||
|
||||
return new JSONResponse(array("phonelist" => $formatedPhoneList, "contacts" => $contacts, "photos" => $photos, "uids" => $uids));
|
||||
return new JSONResponse(array("phonelist" => $phoneList, "contacts" => $contacts, "photos" => $photos, "uids" => $uids));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user