diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2017-12-24 01:50:14 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2017-12-24 01:50:14 +0100 |
commit | 5efeaea38664b9c3e99ae26baa3c00a04b3eb2dc (patch) | |
tree | 0d5178236c3ad5dbeb258685792f143f53787430 /src/contacts-contact-sheet.vala | |
parent | 035b76b2a9594fa6759d9e06625e78a4bdbb1f10 (diff) | |
download | gnome-contacts-5efeaea38664b9c3e99ae26baa3c00a04b3eb2dc.tar.gz |
ContactStore: only store 1 calling account.
Telepathy is on it's way out, and really, the end-result of this code
still does exactly the same thing.
Diffstat (limited to 'src/contacts-contact-sheet.vala')
-rw-r--r-- | src/contacts-contact-sheet.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala index e0243f2..6b96794 100644 --- a/src/contacts-contact-sheet.vala +++ b/src/contacts-contact-sheet.vala @@ -152,10 +152,10 @@ public class Contacts.ContactSheet : Grid { if (phone_details != null) { var phones = Contact.sort_fields<PhoneFieldDetails>(phone_details.phone_numbers); foreach (var phone in phones) { - if (c.store != null && c.store.can_call) { + if (c.store != null && c.store.caller_account != null) { var button = add_row_with_button (ref i, TypeSet.phone.format_type (phone), phone.value); button.clicked.connect (() => { - Utils.start_call (phone.value, c.store.calling_accounts); + Utils.start_call (phone.value, c.store.caller_account); }); } else { add_row_with_label (ref i, TypeSet.phone.format_type (phone), phone.value); |