mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Improve copy of info profile phrases.
This commit is contained in:
@@ -105,15 +105,14 @@ rpl::producer<TextWithEntities> AboutValue(
|
||||
return rpl::single(TextWithEntities{});
|
||||
}
|
||||
|
||||
rpl::producer<TextWithEntities> LinkValue(
|
||||
rpl::producer<QString> LinkValue(
|
||||
not_null<PeerData*> peer) {
|
||||
return PlainUsernameValue(peer)
|
||||
| rpl::map([](QString &&username) {
|
||||
return username.isEmpty()
|
||||
? QString()
|
||||
: Messenger::Instance().createInternalLink(username);
|
||||
})
|
||||
| WithEmptyEntities();
|
||||
: Messenger::Instance().createInternalLinkFull(username);
|
||||
});
|
||||
}
|
||||
|
||||
rpl::producer<bool> NotificationsEnabledValue(
|
||||
|
Reference in New Issue
Block a user