mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Removed unused argument when pin animation in touchbar is cancelled.
This commit is contained in:
@@ -264,7 +264,7 @@ TimeId CalculateOnlineTill(not_null<PeerData*> peer) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const auto cancelCurrentByIndex = [=](int index) {
|
const auto cancelCurrentPeer = [=] {
|
||||||
Expects(*currentPeer != nullptr);
|
Expects(*currentPeer != nullptr);
|
||||||
|
|
||||||
if (*currentState == State::Started) {
|
if (*currentState == State::Started) {
|
||||||
@@ -278,7 +278,7 @@ TimeId CalculateOnlineTill(not_null<PeerData*> peer) {
|
|||||||
|
|
||||||
const auto cancelCurrent = [=] {
|
const auto cancelCurrent = [=] {
|
||||||
if (*currentPeer) {
|
if (*currentPeer) {
|
||||||
cancelCurrentByIndex(indexOf(*currentPeer));
|
cancelCurrentPeer();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -356,7 +356,7 @@ TimeId CalculateOnlineTill(not_null<PeerData*> peer) {
|
|||||||
const auto index = indexOf(*currentPeer);
|
const auto index = indexOf(*currentPeer);
|
||||||
if (*currentDesiredIndex == index
|
if (*currentDesiredIndex == index
|
||||||
|| *currentState != State::Started) {
|
|| *currentState != State::Started) {
|
||||||
cancelCurrentByIndex(index);
|
cancelCurrentPeer();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto result = *currentDesiredIndex;
|
const auto result = *currentDesiredIndex;
|
||||||
|
Reference in New Issue
Block a user