* Bug 645186 — Make sure all connect() calls have appropriate disconnect() calls
* Bug 648533 — Add runtime debug signalling
* Bug 649790 — Vala uses the wrong includes
+* Bug 649088 — Combining contacts doesn't work with german Umlauts
API changes:
* LinkedHashSet.list_iterator() is now disallowed (causes an assertion failure)
public static string normalise_im_address (string im_address, string protocol)
throws Folks.ImDetailsError
{
- string normalised;
-
if (protocol == "aim" || protocol == "myspace")
{
- normalised = im_address.replace (" ", "").down ();
+ return im_address.replace (" ", "").down ().normalize ();
}
else if (protocol == "irc" || protocol == "yahoo" ||
protocol == "yahoojp" || protocol == "groupwise")
{
- normalised = im_address.down ();
+ return im_address.down ().normalize ();
}
else if (protocol == "jabber")
{
node = node.down ();
/* Build a new JID */
+ string normalised = null;
+
if (node != null && resource != null)
{
normalised = "%s@%s/%s".printf (node, domain, resource);
_("The IM address '%s' could not be understood."),
im_address);
}
+
+ return normalised.normalize (-1, NormalizeMode.NFKC);
}
else
{
/* Fallback */
- normalised = im_address;
+ return im_address.normalize ();
}
-
- return normalised.normalize ();
}
}