uiux(Chat): replace status ens address with user names in suggestion box

UX request mentioned in #769

Fixes part of #769
This commit is contained in:
Pascal Precht 2020-08-27 19:47:32 +02:00 committed by Iuri Matias
parent bdfdf263cc
commit 6fd4c363e7
1 changed files with 1 additions and 0 deletions

View File

@ -213,6 +213,7 @@ StackLayout {
chatsModel.plainText(chatInput.textInput.text);
let aliasName = item[suggestionsBox.property.split(",").map(p => p.trim()).find(p => !!item[p])]
aliasName = aliasName.replace(".stateofus.eth", "")
let nameLen = aliasName.length + 2 // We're doing a +2 here because of the `@` and the trailing whitespace
let position = 0;
let text = ""