-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to change their DTag #226
Comments
@RiccardoM for "client" do you mean like Can this be done by converting the |
About tagging
Exactly
As far as I can see, there are a couple of problems with this approach:
Suppose we solve all the above mentioned problems, this is also not true. As a reference, this is what Twitter returns for a Tweet: {
"created_at": "Mon Jul 13 12:33:39 +0000 2020",
"id_str": "1282654421466468358",
"full_text": "@SlackHQ is the [at]here mention disabled by any chance? It's not working properly right now",
"display_text_range": [
0,
92
],
"entities": {
"user_mentions": [
{
"screen_name": "SlackHQ",
"name": "Slack",
"id_str": "1305940272",
"indices": [
0,
8
]
}
]
},
"source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
"in_reply_to_user_id_str": "1305940272",
"in_reply_to_screen_name": "SlackHQ",
"user_id_str": "347727501",
"retweet_count": 0,
"favorite_count": 0,
"reply_count": 1,
"quote_count": 0,
"conversation_id_str": "1282654421466468358",
"lang": "en"
} They return the plain text, but also they use the I personally think that we can go with another approach, which would be:
This way we:
|
Feature description
Currently after a user has registered a profile, the DTag value will be de-facto immutable, forcing him to build a whole new profile if he wants to change.
Since the only constriction about DTags is that they should be unique, and they should be used when tagging a user as a human-readable references to the tagged person, I think we can safely allow any user to change his DTag at any time.
Implementation proposal
To implement this feature, I think it's sufficient to change the checks inside the
HandleMsgSaveProfile
, by removing* the condition that checks whether the providedDTag
inside the message is equals to the exiting one.Thanks to this change, and the fact that we already have in place a check to make sure that the provided DTag is not already associated to another user, the trick should be done.
Clients tagging consideration
About tagging, I think that the clients should not rely on the
DTag
values when tagging users. Instead, they should always replace theDTag
with the userAddress
value to make sure it never changes in the future.So, suppose the user writes the following post inside the client:
This should be translated from the client into:
Then, when rendered, the
[desmos1...]
part should be replaced with the user tag, allowing to click on it properly.What do you guys think @kwunyeung @bragaz?
The text was updated successfully, but these errors were encountered: