mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Merge tag 'v6.4.2' into dev
This commit is contained in:
@@ -566,6 +566,8 @@ void ApiWrap::sendMessageFail(
|
||||
}
|
||||
}
|
||||
peer->updateFull();
|
||||
} else if (show) {
|
||||
show->showToast(error);
|
||||
}
|
||||
if (const auto item = _session->data().message(itemId)) {
|
||||
Assert(randomId != 0);
|
||||
@@ -1882,12 +1884,14 @@ void ApiWrap::requestNotifySettings(const MTPInputNotifyPeer &peer) {
|
||||
return PeerId(0);
|
||||
}, [](const MTPDinputPeerChannel &data) {
|
||||
return peerFromChannel(data.vchannel_id());
|
||||
}, [](const MTPDinputPeerChannelFromMessage &data) {
|
||||
return peerFromChannel(data.vchannel_id());
|
||||
}, [](const MTPDinputPeerChat &data) {
|
||||
return peerFromChat(data.vchat_id());
|
||||
}, [](const MTPDinputPeerUser &data) {
|
||||
return peerFromUser(data.vuser_id());
|
||||
}, [](const auto &) -> PeerId {
|
||||
Unexpected("Type in ApiRequest::requestNotifySettings peer.");
|
||||
}, [](const MTPDinputPeerUserFromMessage &data) {
|
||||
return peerFromUser(data.vuser_id());
|
||||
});
|
||||
};
|
||||
const auto key = peer.match([](const MTPDinputNotifyUsers &) {
|
||||
|
||||
Reference in New Issue
Block a user