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;
|
||||
}
|
||||
$fpn = PhoneNumberFormatter::format($country, $phoneNumber);
|
||||
if(isset($phoneList[$fpn])){
|
||||
$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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user