2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

ReportSpamPanel -> HistoryView::ContactStatus.

This commit is contained in:
John Preston
2019-06-07 14:32:58 +03:00
parent 30dea3a2e7
commit 5e3734d7bf
21 changed files with 438 additions and 501 deletions

View File

@@ -4215,8 +4215,11 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
} break;
case mtpc_updatePeerSettings: {
//const auto &d = update.c_updateContactLink();
//App::feedUserLink(d.vuser_id, d.vmy_link, d.vforeign_link);
const auto &d = update.c_updatePeerSettings();
const auto peerId = peerFromMTP(d.vpeer);
if (const auto peer = session().data().peerLoaded(peerId)) {
//peer->updateSettings(d.vsettings);
}
} break;
case mtpc_updateNotifySettings: {
@@ -4278,9 +4281,9 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
} break;
case mtpc_updateUserBlocked: {
auto &d = update.c_updateUserBlocked();
if (auto user = session().data().userLoaded(d.vuser_id.v)) {
user->setBlockStatus(mtpIsTrue(d.vblocked) ? UserData::BlockStatus::Blocked : UserData::BlockStatus::NotBlocked);
const auto &d = update.c_updateUserBlocked();
if (const auto user = session().data().userLoaded(d.vuser_id.v)) {
user->setIsBlocked(mtpIsTrue(d.vblocked));
}
} break;