This commit is contained in:
InsanusMokrassar 2021-11-12 14:35:36 +06:00
parent b5d0eda79d
commit 63af9ba8e0
3 changed files with 10 additions and 10 deletions

View File

@ -51,12 +51,12 @@ class DefaultAdminsCacheAPIRepo(
}
override suspend fun getChatAdmins(chatId: ChatId): List<AdministratorChatMember>? = suspendCoroutine {
actor.offer(GetChatAdminsRepoAction(chatId, it))
actor.trySend(GetChatAdminsRepoAction(chatId, it))
}
override suspend fun setChatAdmins(chatId: ChatId, chatMembers: List<AdministratorChatMember>) = suspendCoroutine<Unit> {
actor.offer(SetChatAdminsRepoAction(chatId, chatMembers, it))
actor.trySend(SetChatAdminsRepoAction(chatId, chatMembers, it))
}
override suspend fun lastUpdate(chatId: ChatId): DateTime? = suspendCoroutine {
actor.offer(GetUpdateDateTimeRepoAction(chatId, it))
actor.trySend(GetUpdateDateTimeRepoAction(chatId, it))
}
}

View File

@ -7,14 +7,14 @@ android.useAndroidX=true
android.enableJetifier=true
kotlin_version=1.5.31
kotlin_serialisation_core_version=1.2.2
kotlin_serialisation_core_version=1.3.1
github_release_plugin_version=2.2.12
tgbotapi_version=0.35.9
micro_utils_version=0.5.28
exposed_version=0.34.2
plagubot_version=0.3.2
tgbotapi_version=0.37.0
micro_utils_version=0.8.2
exposed_version=0.36.1
plagubot_version=0.4.0
# ANDROID
@ -28,7 +28,7 @@ espresso_core=3.3.0
# Dokka
dokka_version=1.5.30
dokka_version=1.5.31
# Project data

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists