This commit is contained in:
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))
}
}