smart list: sync initial selection with model

Sync the selection on init of the the conversations (aka: smart
list) view. This is important in case there are any incoming calls
already selected in the model on init.

Change-Id: I5a8133f1f8c2e00275c9f5c4f2bfcd4a631be643
Reviewed-by: Nicolas Jäger <nicolas.jager@savoirfairelinux.com>
diff --git a/src/recentcontactsview.cpp b/src/recentcontactsview.cpp
index f903fba..539d271 100644
--- a/src/recentcontactsview.cpp
+++ b/src/recentcontactsview.cpp
@@ -650,6 +650,9 @@
     g_signal_connect(selection, "changed", G_CALLBACK(scroll_to_selection), NULL);
     g_signal_connect_swapped(recent_model, "rows-reordered", G_CALLBACK(scroll_to_selection), selection);
 
+    /* sync initial selection */
+    g_idle_add((GSourceFunc)synchronize_selection, self);
+
     auto synchronize_selection_idle = [self] () { g_idle_add((GSourceFunc)synchronize_selection, self); };
 
     /* update the selection based on the RecentModel */