mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Move stickers state variables to AuthSessionData.
Also allow to click on the selected set when choosing megagroup sticker set and allow to paste a t.me link to the set there.
This commit is contained in:
@@ -124,14 +124,14 @@ void Gif::setPosition(int32 position) {
|
||||
}
|
||||
|
||||
void DeleteSavedGifClickHandler::onClickImpl() const {
|
||||
auto index = cSavedGifs().indexOf(_data);
|
||||
auto index = Auth().data().savedGifs().indexOf(_data);
|
||||
if (index >= 0) {
|
||||
cRefSavedGifs().remove(index);
|
||||
Auth().data().savedGifsRef().remove(index);
|
||||
Local::writeSavedGifs();
|
||||
|
||||
MTP::send(MTPmessages_SaveGif(_data->mtpInput(), MTP_bool(true)));
|
||||
}
|
||||
Auth().data().savedGifsUpdated().notify();
|
||||
Auth().data().markSavedGifsUpdated();
|
||||
}
|
||||
|
||||
void Gif::paint(Painter &p, const QRect &clip, const PaintContext *context) const {
|
||||
|
Reference in New Issue
Block a user