mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 16:06:15 +00:00
Fix regex and then duplicate numbers into conversation
This commit is contained in:
parent
66859a4940
commit
e655024521
@ -143,7 +143,7 @@ class SmsController extends Controller {
|
||||
|
||||
$msgCount += $this->smsMapper->countMessagesForPhoneNumber($this->userId, $fmtPN);
|
||||
|
||||
$fmtPNCleaned = preg_replace("#[ ]|-|\(|\)]#","", $fmtPN);
|
||||
$fmtPNCleaned = preg_replace("#[ ]|[-]|[(]|[)]#","", $fmtPN);
|
||||
if (!in_array($fmtPNCleaned, $cleanedPhones)) {
|
||||
$phoneNumbers[] = $fmtPN;
|
||||
$cleanedPhones[] = $fmtPNCleaned;
|
||||
|
Loading…
x
Reference in New Issue
Block a user