2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Save pinned chats in filters to server.

This commit is contained in:
John Preston
2020-03-17 18:52:01 +04:00
parent e27a8fe058
commit 55900bbd3d
13 changed files with 112 additions and 79 deletions

View File

@@ -44,6 +44,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/widgets/multi_select.h"
#include "ui/empty_userpic.h"
#include "ui/unread_badge.h"
#include "api/api_chat_filters.h"
#include "facades.h"
#include "styles/style_dialogs.h"
#include "styles/style_chat_helpers.h"
@@ -1137,7 +1138,7 @@ void InnerWidget::savePinnedOrder() {
}
}
if (_filterId) {
// #TODO pinned reorder data and to server
Api::SaveNewFilterPinned(&session(), _filterId);
} else {
session().api().savePinnedOrder(_openedFolder);
}