mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-04 06:11:17 +00:00
Fix edit bio in Settings.
This commit is contained in:
parent
9c01bbca95
commit
d67a8a4708
@ -90,7 +90,12 @@ void InfoWidget::refreshUsername() {
|
|||||||
usernameText.text = '@' + self()->username;
|
usernameText.text = '@' + self()->username;
|
||||||
copyText = lang(lng_context_copy_mention);
|
copyText = lang(lng_context_copy_mention);
|
||||||
}
|
}
|
||||||
usernameText.entities.push_back(EntityInText(EntityInTextCustomUrl, 0, usernameText.text.size(), Messenger::Instance().createInternalLinkFull(self()->username)));
|
usernameText.entities.push_back(EntityInText(
|
||||||
|
EntityInTextCustomUrl,
|
||||||
|
0,
|
||||||
|
usernameText.text.size(),
|
||||||
|
Messenger::Instance().createInternalLinkFull(
|
||||||
|
self()->username)));
|
||||||
setLabeledText(
|
setLabeledText(
|
||||||
_username,
|
_username,
|
||||||
lang(lng_profile_username),
|
lang(lng_profile_username),
|
||||||
@ -113,7 +118,11 @@ void InfoWidget::refreshBio() {
|
|||||||
} else {
|
} else {
|
||||||
bioText.text = aboutText;
|
bioText.text = aboutText;
|
||||||
}
|
}
|
||||||
bioText.entities.push_back(EntityInText(EntityInTextCustomUrl, 0, bioText.text.size(), QString()));
|
bioText.entities.push_back(EntityInText(
|
||||||
|
EntityInTextCustomUrl,
|
||||||
|
0,
|
||||||
|
bioText.text.size(),
|
||||||
|
QString("internal:edit_bio")));
|
||||||
setLabeledText(
|
setLabeledText(
|
||||||
_bio,
|
_bio,
|
||||||
lang(lng_profile_bio),
|
lang(lng_profile_bio),
|
||||||
|
Loading…
Reference in New Issue
Block a user