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:
parent
dcd1d29da7
commit
7a23294e7f
@ -132,10 +132,16 @@ class SmsMapper extends Mapper {
|
|||||||
}
|
}
|
||||||
$phoneList[$fmtPN][$pn] += 1;
|
$phoneList[$fmtPN][$pn] += 1;
|
||||||
}
|
}
|
||||||
$fpn = PhoneNumberFormatter::format($country, $phoneNumber);
|
$fpn = $phoneNumber;
|
||||||
if(isset($phoneList[$fpn])){
|
if(isset($phoneList[$fpn])) {
|
||||||
return $phoneList[$fpn];
|
return $phoneList[$fpn];
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$fpn = PhoneNumberFormatter::format($country, $fpn);
|
||||||
|
if (isset($phoneList[$fpn])) {
|
||||||
|
return $phoneList[$fpn];
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user