From b06111202da17763b3b807b3bf04412540217968 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 16 Mar 2017 15:16:24 +0000 Subject: [PATCH] Display threepids slightly prettier ie. Put a + on the front of msisdns. --- src/components/structures/UserSettings.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index febdccd9c3..8b30d0f497 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -755,6 +755,14 @@ module.exports = React.createClass({ return medium[0].toUpperCase() + medium.slice(1); }, + presentableTextForThreepid: function(threepid) { + if (threepid.medium == 'msisdn') { + return '+' + threepid.address; + } else { + return threepid.address; + } + }, + render: function() { var Loader = sdk.getComponent("elements.Spinner"); switch (this.state.phase) { @@ -787,7 +795,9 @@ module.exports = React.createClass({
- +
Remove