Fix URI lookups

When looking up a ring username, we must include more than the userinfo.
Otherwise lookups for the usernames like "aviau@test.com" will be sent
as just "aviau" and it will lookup using the account-configured lookup
server.

Tuleap: #1183
Change-Id: Ib98b61743c0056366dfd8b2363275510de6a69a2
diff --git a/src/ringmainwindow.cpp b/src/ringmainwindow.cpp
index e98eda5..a73bc78 100644
--- a/src/ringmainwindow.cpp
+++ b/src/ringmainwindow.cpp
@@ -541,7 +541,11 @@
                 _("looking up RingID")
             );
 
-            QString username_to_lookup = uri.userinfo();
+            QString username_to_lookup = uri.format(
+                URI::Section::USER_INFO |
+                URI::Section::HOSTNAME |
+                URI::Section::PORT
+            );
 
             QObject::disconnect(priv->username_lookup);
             priv->username_lookup = QObject::connect(