Rename method to suit better

This commit is contained in:
Dean Herbert 2022-11-21 15:22:57 +09:00
parent 5c640d15a0
commit efd73ea9da
2 changed files with 3 additions and 3 deletions

View File

@ -33,11 +33,11 @@ protected NotificationsClient(IAPIProvider api)
public override Task ConnectAsync(CancellationToken cancellationToken)
{
API.Queue(CreateFetchMessagesRequest(0));
API.Queue(CreateInitialFetchRequest(0));
return Task.CompletedTask;
}
protected APIRequest CreateFetchMessagesRequest(long? lastMessageId = null)
protected APIRequest CreateInitialFetchRequest(long? lastMessageId = null)
{
var fetchReq = new GetUpdatesRequest(lastMessageId ?? this.lastMessageId);

View File

@ -24,7 +24,7 @@ public override Task ConnectAsync(CancellationToken cancellationToken)
{
while (!cancellationToken.IsCancellationRequested)
{
await API.PerformAsync(CreateFetchMessagesRequest());
await API.PerformAsync(CreateInitialFetchRequest());
await Task.Delay(1000, cancellationToken);
}
}, cancellationToken);