Fix build for macOS.
This commit is contained in:
parent
55900bbd3d
commit
e36a66b971
|
@ -434,7 +434,7 @@ void AppendEmojiPacks(std::vector<PickerScrubberItem> &to) {
|
|||
if (std::abs(_startPosition - currentPosition) > step) {
|
||||
const auto delta = (currentPosition > _startPosition) ? 1 : -1;
|
||||
const auto newIndex = _tempIndex + delta;
|
||||
const auto &order = Auth().data().pinnedChatsOrder(nullptr);
|
||||
const auto &order = Auth().data().pinnedChatsOrder(nullptr, FilterId());
|
||||
|
||||
// In case the order has been changed from another device
|
||||
// while the user is dragging the dialog.
|
||||
|
@ -444,6 +444,7 @@ void AppendEmojiPacks(std::vector<PickerScrubberItem> &to) {
|
|||
|
||||
if (newIndex >= 0 && newIndex < order.size()) {
|
||||
Auth().data().reorderTwoPinnedChats(
|
||||
FilterId(),
|
||||
order.at(_tempIndex).history(),
|
||||
order.at(newIndex).history());
|
||||
_tempIndex = newIndex;
|
||||
|
@ -1324,7 +1325,7 @@ void AppendEmojiPacks(std::vector<PickerScrubberItem> &to) {
|
|||
}
|
||||
|
||||
- (void) updatePinnedButtons {
|
||||
const auto &order = Auth().data().pinnedChatsOrder(nullptr);
|
||||
const auto &order = Auth().data().pinnedChatsOrder(nullptr, FilterId());
|
||||
auto isSelfPeerPinned = false;
|
||||
auto isArchivePinned = false;
|
||||
PinnedDialogButton *selfChatButton;
|
||||
|
|
Loading…
Reference in New Issue