mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Fix regex and then duplicate numbers into conversation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user