mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +00:00
fix: fix ens names that are not status having an extra .eth
added
This commit is contained in:
parent
553ff2e915
commit
89b45146fc
@ -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 = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user