2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Implement information settings section.

This commit is contained in:
John Preston
2018-09-09 20:38:08 +03:00
parent 633ff4b60e
commit bbe6d2d13b
26 changed files with 459 additions and 25 deletions

View File

@@ -23,6 +23,16 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
namespace Info {
namespace Profile {
rpl::producer<TextWithEntities> NameValue(
not_null<PeerData*> peer) {
return Notify::PeerUpdateValue(
peer,
Notify::PeerUpdate::Flag::NameChanged
) | rpl::map([=] {
return App::peerName(peer);
}) | WithEmptyEntities();
}
rpl::producer<TextWithEntities> PhoneValue(
not_null<UserData*> user) {
return Notify::PeerUpdateValue(