2
0
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:
John Preston
2017-11-10 21:51:59 +04:00
parent dd3ae22e08
commit a6df928d45
6 changed files with 67 additions and 25 deletions

View File

@@ -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(