mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Add a fix for duplicates messages in database with or without spaces
This commit is contained in:
@@ -214,6 +214,10 @@ class SmsMapper extends Mapper {
|
||||
if (!in_array($phoneNumber, $phoneList)) {
|
||||
$phoneList[$phoneNumber] = $row["mx"];
|
||||
}
|
||||
// Maybe duplicate due to spaces in database
|
||||
else if ($phoneList[$phoneNumber] < $row["mx"]) {
|
||||
$phoneList[$phoneNumber] = $row["mx"];
|
||||
}
|
||||
}
|
||||
return $phoneList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user