[Fix] calls only attach if they exist
This commit is contained in:
parent
205738b32a
commit
41b471362f
2 changed files with 9 additions and 7 deletions
|
|
@ -519,12 +519,12 @@ impl GeneralConnection {
|
|||
]),
|
||||
);
|
||||
}
|
||||
|
||||
contact_map.insert(
|
||||
DataTypes::calls,
|
||||
DataValue::Array(vec_of_filtered_calls),
|
||||
);
|
||||
|
||||
if !vec_of_filtered_calls.is_empty() {
|
||||
contact_map.insert(
|
||||
DataTypes::calls,
|
||||
DataValue::Array(vec_of_filtered_calls),
|
||||
);
|
||||
}
|
||||
new_contacts.push(DataValue::container_from_map(
|
||||
&contact_map,
|
||||
));
|
||||
|
|
|
|||
Loading…
Reference in a new issue