fix: issue where msg-ctx stays open after delete

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-01-06 18:28:47 +01:00
parent 1e6ded84ed
commit 1e68aa843f
1 changed files with 3 additions and 7 deletions

View File

@ -286,16 +286,12 @@ fun MessageContextSheet(
confirmButton = {
Button(
onClick = {
coroutineScope.launch {
message.channel?.let { channelId ->
deleteMessage(channelId, messageId)
}
onHideSheet()
}
showDeleteMessageConfirmation = false
coroutineScope.launch {
onHideSheet()
message.channel?.let { channelId ->
deleteMessage(channelId, messageId)
}
}
}
) {