1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Add contact photos into peerlist

Add some support into controller
This commit is contained in:
Loic Blot
2014-12-29 11:31:03 +00:00
parent 2fe4cc0ce0
commit da5447a51b
4 changed files with 33 additions and 10 deletions
+2 -1
View File
@@ -111,6 +111,7 @@ class SmsController extends Controller {
$phoneList = $this->smsMapper->getLastMessageTimestampForAllPhonesNumbers($this->userId);
$contactsSrc = $this->app->getContacts();
$contacts = array();
$photos = $this->app->getContactPhotos();
$countPhone = count($phoneList);
foreach ($phoneList as $number => $ts) {
@@ -126,7 +127,7 @@ class SmsController extends Controller {
}
}
$lastRead = $this->smsMapper->getLastReadDate($this->userId);
return new JSONResponse(array("phonelist" => $phoneList, "contacts" => $contacts, "lastRead" => $lastRead));
return new JSONResponse(array("phonelist" => $phoneList, "contacts" => $contacts, "lastRead" => $lastRead, "photos" => $photos));
}
/**