Skip to content

Commit 67c69d1

Browse files
Variable renaming
1 parent b3d3a60 commit 67c69d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Adamant/Services/DataProviders/AdamantChatsProvider.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ extension AdamantChatsProvider {
302302
case .failure(let error):
303303
switch error {
304304
case .networkError:
305-
let getChatMessages: () -> Void = {
305+
let getChatrooms: () -> Void = {
306306
self?.apiGetChatrooms(
307307
address: address,
308308
offset: offset,
@@ -312,10 +312,10 @@ extension AdamantChatsProvider {
312312
if self?.isConnectedToTheInternet == true {
313313
DispatchQueue.global().asyncAfter(
314314
deadline: .now() + requestRepeatDelay,
315-
execute: getChatMessages
315+
execute: getChatrooms
316316
)
317317
} else {
318-
self?.addOnConnectionToTheInternetRestored(task: getChatMessages)
318+
self?.addOnConnectionToTheInternetRestored(task: getChatrooms)
319319
}
320320
default:
321321
completion?(nil)

0 commit comments

Comments
 (0)