mirror of https://github.com/procxx/kepka.git
Fix adding Saved Messages exception to filters.
This commit is contained in:
parent
a13042ac6a
commit
1ea42116d2
|
@ -276,7 +276,7 @@ void EditExceptions(
|
||||||
const auto peers = box->peerListCollectSelectedRows();
|
const auto peers = box->peerListCollectSelectedRows();
|
||||||
auto &&histories = ranges::view::all(
|
auto &&histories = ranges::view::all(
|
||||||
peers
|
peers
|
||||||
) | ranges::view::transform([=](not_null<PeerData*> peer) {
|
) | ranges::view::transform([=](not_null<PeerData*> peer) {
|
||||||
return window->session().data().history(peer);
|
return window->session().data().history(peer);
|
||||||
});
|
});
|
||||||
auto changed = base::flat_set<not_null<History*>>{
|
auto changed = base::flat_set<not_null<History*>>{
|
||||||
|
|
|
@ -59,6 +59,8 @@ ChatFilter ChatFilter::FromTL(
|
||||||
const auto channel = owner->channel(data.vchannel_id().v);
|
const auto channel = owner->channel(data.vchannel_id().v);
|
||||||
channel->setAccessHash(data.vaccess_hash().v);
|
channel->setAccessHash(data.vaccess_hash().v);
|
||||||
return (PeerData*)channel;
|
return (PeerData*)channel;
|
||||||
|
}, [&](const MTPDinputPeerSelf &data) {
|
||||||
|
return (PeerData*)owner->session().user();
|
||||||
}, [&](const auto &data) {
|
}, [&](const auto &data) {
|
||||||
return (PeerData*)nullptr;
|
return (PeerData*)nullptr;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue