Update NavigationController.cs
This commit is contained in:
parent
47a5b502b9
commit
fd7d72b986
@ -121,10 +121,7 @@ namespace TelegramBotBase.Form.Navigation
|
||||
/// <returns></returns>
|
||||
public virtual async Task PopToRootAsync()
|
||||
{
|
||||
if (Index == 0)
|
||||
return;
|
||||
|
||||
while (History.Count > 1)
|
||||
while (Index > 0)
|
||||
{
|
||||
await PopAsync();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user