IncomingCallView : show registered name if present
- shows the registered name instead of the ring id on the incoming
/outgoing call page if the contact has signed up on the blockchain.
- this patch requires change 5996.
Tuleap: #1248
Change-Id: I757a8391e3fa94fe919b79b4d6184ba406fee826
diff --git a/src/incomingcallview.cpp b/src/incomingcallview.cpp
index 80bb749..809daa4 100644
--- a/src/incomingcallview.cpp
+++ b/src/incomingcallview.cpp
@@ -212,11 +212,11 @@
gtk_label_set_text(GTK_LABEL(priv->label_name), name.toUtf8().constData());
/* get uri, if different from name */
- auto uri = call->peerContactMethod()->uri();
- if (name != uri) {
+ auto bestId = call->peerContactMethod()->getBestId();
+ if (name != bestId) {
auto cat_bestId = g_strdup_printf("(%s) %s"
,call->peerContactMethod()->category()->name().toUtf8().constData()
- ,uri.toUtf8().constData());
+ ,bestId.toUtf8().constData());
gtk_label_set_text(GTK_LABEL(priv->label_bestId), cat_bestId);
g_free(cat_bestId);
gtk_widget_show(priv->label_bestId);