mirror of
				https://github.com/nerzhul/ocsms.git
				synced 2025-10-31 10:27:42 +00:00 
			
		
		
		
	Merge pull request #46 from martin-rueegg/patch-2
Speed improvements in contact photo check
This commit is contained in:
		
						commit
						75e3e409ac
					
				| @ -145,15 +145,15 @@ class OcSmsApp extends App { | |||||||
| 				else { | 				else { | ||||||
| 					$this->pushPhoneNumberToCache($phoneIds, $r["FN"], $configuredCountry); | 					$this->pushPhoneNumberToCache($phoneIds, $r["FN"], $configuredCountry); | ||||||
| 				} | 				} | ||||||
| 			} |  | ||||||
| 				 | 				 | ||||||
| 				if (isset ($r["PHOTO"])) { | 				if (isset ($r["PHOTO"])) { | ||||||
| 					// Remove useless prefix
 | 					// Remove useless prefix
 | ||||||
| 				$photoURL = preg_replace("#VALUE=uri:#","",$r["PHOTO"]); | 					$photoURL = preg_replace("#^VALUE=uri:#","",$r["PHOTO"], 1); | ||||||
| 					self::$contactPhotos[$r["FN"]] = $photoURL; | 					self::$contactPhotos[$r["FN"]] = $photoURL; | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
| 
 | 
 | ||||||
| 	private function pushPhoneNumberToCache($rawPhone, $contactName, $country) { | 	private function pushPhoneNumberToCache($rawPhone, $contactName, $country) { | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user