From 99a2baebaa8f91737dc1c9da67c454f127d64fec Mon Sep 17 00:00:00 2001 From: rhunk <101876869+rhunk@users.noreply.github.com> Date: Mon, 26 Feb 2024 12:20:00 +0100 Subject: [PATCH] fix(core): bulk messaging action --- .../rhunk/snapenhance/core/action/impl/BulkMessagingAction.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/action/impl/BulkMessagingAction.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/action/impl/BulkMessagingAction.kt index 76e04252..475b4c79 100644 --- a/core/src/main/kotlin/me/rhunk/snapenhance/core/action/impl/BulkMessagingAction.kt +++ b/core/src/main/kotlin/me/rhunk/snapenhance/core/action/impl/BulkMessagingAction.kt @@ -412,7 +412,7 @@ class BulkMessagingAction : AbstractAction() { onClick = { showConfirmationDialog = true action = { - removeAction(ctx, selectedFriends.also { + removeAction(ctx, selectedFriends.toList().also { selectedFriends.clear() }) { removeFriend(it) }.invokeOnCompletion { context.coroutineScope.launch { refreshList() } @@ -461,4 +461,4 @@ class BulkMessagingAction : AbstractAction() { }.invoke(completable) } } -} \ No newline at end of file +}