fix: issue where msg-ctx stays open after delete
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
1e6ded84ed
commit
1e68aa843f
|
|
@ -286,16 +286,12 @@ fun MessageContextSheet(
|
||||||
confirmButton = {
|
confirmButton = {
|
||||||
Button(
|
Button(
|
||||||
onClick = {
|
onClick = {
|
||||||
coroutineScope.launch {
|
|
||||||
message.channel?.let { channelId ->
|
|
||||||
deleteMessage(channelId, messageId)
|
|
||||||
}
|
|
||||||
|
|
||||||
onHideSheet()
|
|
||||||
}
|
|
||||||
showDeleteMessageConfirmation = false
|
showDeleteMessageConfirmation = false
|
||||||
coroutineScope.launch {
|
coroutineScope.launch {
|
||||||
onHideSheet()
|
onHideSheet()
|
||||||
|
message.channel?.let { channelId ->
|
||||||
|
deleteMessage(channelId, messageId)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue