mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2025-09-15 04:59:41 +00:00
small hotfix
This commit is contained in:
@@ -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
|
||||
|
||||
refreshPostMessage(
|
||||
postId,
|
||||
chatId,
|
||||
messageId
|
||||
)
|
||||
runCatchingSafely {
|
||||
refreshPostMessage(
|
||||
postId,
|
||||
chatId,
|
||||
messageId
|
||||
)
|
||||
}
|
||||
answer(query)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user