Merge pull request #9 from InsanusMokrassar/0.0.13

0.0.13
This commit is contained in:
InsanusMokrassar 2021-11-12 16:18:05 +06:00
commit 17d7fe6659
3 changed files with 12 additions and 12 deletions

View File

@ -51,12 +51,12 @@ class DefaultAdminsCacheAPIRepo(
} }
override suspend fun getChatAdmins(chatId: ChatId): List<AdministratorChatMember>? = suspendCoroutine { 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> { 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 { 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 android.enableJetifier=true
kotlin_version=1.5.31 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 github_release_plugin_version=2.2.12
tgbotapi_version=0.35.9 tgbotapi_version=0.37.0
micro_utils_version=0.5.28 micro_utils_version=0.8.2
exposed_version=0.34.2 exposed_version=0.36.1
plagubot_version=0.3.2 plagubot_version=0.4.0
# ANDROID # ANDROID
@ -28,10 +28,10 @@ espresso_core=3.3.0
# Dokka # Dokka
dokka_version=1.5.30 dokka_version=1.5.31
# Project data # Project data
group=dev.inmo group=dev.inmo
version=0.0.12 version=0.0.13
android_code_version=11 android_code_version=12

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists 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 zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists