mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 08:23:00 +00:00
v1.6.2: Fix owncloud 9 contact app which break our frontend
This commit is contained in:
@@ -98,7 +98,14 @@ class SmsController extends Controller {
|
||||
}
|
||||
}
|
||||
$lastRead = $this->smsMapper->getLastReadDate($this->userId);
|
||||
return new JSONResponse(array("phonelist" => $phoneList, "contacts" => $contacts, "lastRead" => $lastRead, "photos" => $photos));
|
||||
$ocversion = \OCP\Util::getVersion();
|
||||
$photoURL = preg_replace("#^VALUE=uri:#","",$r["PHOTO"], 1);
|
||||
$photoversion = 1;
|
||||
if (version_compare($ocversion[0].".".$ocversion[1].".".$ocversion[2], "9.0.0", ">=")) {
|
||||
$photoversion = 2;
|
||||
}
|
||||
|
||||
return new JSONResponse(array("phonelist" => $phoneList, "contacts" => $contacts, "lastRead" => $lastRead, "photos" => $photos, "photo_version" => $photoversion));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user