2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Add 'Share my phone number' click handler.

This commit is contained in:
John Preston
2019-06-11 15:17:52 +02:00
parent 08d4715ad6
commit 3a34b15841
2 changed files with 14 additions and 1 deletions

View File

@@ -4218,7 +4218,11 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
const auto &d = update.c_updatePeerSettings();
const auto peerId = peerFromMTP(d.vpeer);
if (const auto peer = session().data().peerLoaded(peerId)) {
//peer->updateSettings(d.vsettings);
const auto settings = d.vsettings.match([](
const MTPDpeerSettings &data) {
return data.vflags.v;
});
peer->setSettings(settings);
}
} break;