mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Support dialog rows with variable height.
This commit is contained in:
@@ -386,7 +386,7 @@ void ApiWrap::checkChatInvite(
|
||||
|
||||
void ApiWrap::savePinnedOrder(Data::Folder *folder) {
|
||||
const auto &order = _session->data().pinnedChatsOrder(folder);
|
||||
const auto input = [](const Dialogs::Key &key) {
|
||||
const auto input = [](Dialogs::Key key) {
|
||||
if (const auto history = key.history()) {
|
||||
return MTP_inputDialogPeer(history->peer->input);
|
||||
} else if (const auto folder = key.folder()) {
|
||||
@@ -409,7 +409,7 @@ void ApiWrap::savePinnedOrder(Data::Folder *folder) {
|
||||
|
||||
void ApiWrap::savePinnedOrder(not_null<Data::Forum*> forum) {
|
||||
const auto &order = _session->data().pinnedChatsOrder(forum);
|
||||
const auto input = [](const Dialogs::Key &key) {
|
||||
const auto input = [](Dialogs::Key key) {
|
||||
if (const auto topic = key.topic()) {
|
||||
return MTP_int(topic->rootId().bare);
|
||||
}
|
||||
|
Reference in New Issue
Block a user