Fix adding Saved Messages exception to filters.

This commit is contained in:
John Preston 2020-03-19 13:11:41 +04:00
parent a13042ac6a
commit 1ea42116d2
2 changed files with 3 additions and 1 deletions

View File

@ -276,7 +276,7 @@ void EditExceptions(
const auto peers = box->peerListCollectSelectedRows();
auto &&histories = ranges::view::all(
peers
) | ranges::view::transform([=](not_null<PeerData*> peer) {
) | ranges::view::transform([=](not_null<PeerData*> peer) {
return window->session().data().history(peer);
});
auto changed = base::flat_set<not_null<History*>>{

View File

@ -59,6 +59,8 @@ ChatFilter ChatFilter::FromTL(
const auto channel = owner->channel(data.vchannel_id().v);
channel->setAccessHash(data.vaccess_hash().v);
return (PeerData*)channel;
}, [&](const MTPDinputPeerSelf &data) {
return (PeerData*)owner->session().user();
}, [&](const auto &data) {
return (PeerData*)nullptr;
});