2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Moved toggling of existing media to separate file.

This commit is contained in:
23rd
2020-08-17 15:29:27 +03:00
parent 2574389129
commit 8a34f29329
9 changed files with 135 additions and 89 deletions

View File

@@ -7,7 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "chat_helpers/gifs_list_widget.h"
#include "apiwrap.h" // ApiWrap::toggleSavedGif
#include "api/api_toggling_media.h" // Api::ToggleSavedGif
#include "base/const_string.h"
#include "data/data_photo.h"
#include "data/data_document.h"
@@ -48,7 +48,7 @@ constexpr auto kSearchBotUsername = "gif"_cs;
void DeleteSavedGif(not_null<DocumentData*> document) {
auto &data = document->owner();
document->session().api().toggleSavedGif(
Api::ToggleSavedGif(
document,
Data::FileOriginSavedGifs(),
false);