Removed unused argument when pin animation in touchbar is cancelled.
This commit is contained in:
parent
a61ad9e2a2
commit
0f00d90c29
|
@ -264,7 +264,7 @@ TimeId CalculateOnlineTill(not_null<PeerData*> peer) {
|
|||
});
|
||||
};
|
||||
|
||||
const auto cancelCurrentByIndex = [=](int index) {
|
||||
const auto cancelCurrentPeer = [=] {
|
||||
Expects(*currentPeer != nullptr);
|
||||
|
||||
if (*currentState == State::Started) {
|
||||
|
@ -278,7 +278,7 @@ TimeId CalculateOnlineTill(not_null<PeerData*> peer) {
|
|||
|
||||
const auto cancelCurrent = [=] {
|
||||
if (*currentPeer) {
|
||||
cancelCurrentByIndex(indexOf(*currentPeer));
|
||||
cancelCurrentPeer();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -356,7 +356,7 @@ TimeId CalculateOnlineTill(not_null<PeerData*> peer) {
|
|||
const auto index = indexOf(*currentPeer);
|
||||
if (*currentDesiredIndex == index
|
||||
|| *currentState != State::Started) {
|
||||
cancelCurrentByIndex(index);
|
||||
cancelCurrentPeer();
|
||||
return;
|
||||
}
|
||||
const auto result = *currentDesiredIndex;
|
||||
|
|
Loading…
Reference in New Issue