From 3dfffa385eb7a621460d04a4a455f55fa4a11812 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 21 Dec 2016 18:56:50 +0000 Subject: [PATCH] Display msisdn threepids as 'Phone' rather than pretending only email exists --- src/components/structures/UserSettings.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index 337384b118..45f42fea54 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -482,6 +482,11 @@ module.exports = React.createClass({ ; }, + nameForMedium: function(medium) { + if (medium == 'msisdn') return 'Phone'; + return medium[0].toUpperCase() + medium.slice(1); + }, + render: function() { var self = this; var Loader = sdk.getComponent("elements.Spinner"); @@ -512,7 +517,7 @@ module.exports = React.createClass({ return (
- +