1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00

Fix for conversations of contacts not showing any messages (#302)

This commit is contained in:
Bernhard Froehler 2019-10-11 19:52:48 +02:00 committed by e-alfred
parent dcd1d29da7
commit 7a23294e7f

View File

@ -132,10 +132,16 @@ class SmsMapper extends Mapper {
}
$phoneList[$fmtPN][$pn] += 1;
}
$fpn = PhoneNumberFormatter::format($country, $phoneNumber);
$fpn = $phoneNumber;
if(isset($phoneList[$fpn])) {
return $phoneList[$fpn];
}
else {
$fpn = PhoneNumberFormatter::format($country, $fpn);
if (isset($phoneList[$fpn])) {
return $phoneList[$fpn];
}
}
else {
return array();
}