mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2024-12-22 14:07:14 +00:00
small hotfix
This commit is contained in:
parent
7a05b56af2
commit
963d33a452
@ -1,6 +1,7 @@
|
||||
package dev.inmo.plaguposter.posts.panel
|
||||
|
||||
import com.benasher44.uuid.uuid4
|
||||
import dev.inmo.micro_utils.coroutines.runCatchingSafely
|
||||
import dev.inmo.micro_utils.coroutines.subscribeSafelyWithoutExceptions
|
||||
import dev.inmo.micro_utils.koin.getAllDistinct
|
||||
import dev.inmo.micro_utils.repos.deleteById
|
||||
@ -168,11 +169,13 @@ object Plugin : Plugin {
|
||||
val postId = query.data.removePrefix("refresh ").let(::PostId)
|
||||
val (chatId, messageId) = postsMessages.get(postId) ?: return@onMessageDataCallbackQuery
|
||||
|
||||
runCatchingSafely {
|
||||
refreshPostMessage(
|
||||
postId,
|
||||
chatId,
|
||||
messageId
|
||||
)
|
||||
}
|
||||
answer(query)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user