fix: fix ens names that are not status having an extra `.eth` added

This commit is contained in:
Jonathan Rainville 2020-11-18 11:57:02 -05:00
parent 553ff2e915
commit 89b45146fc
1 changed files with 1 additions and 1 deletions

View File

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