fix: Webhooks window resets whenever a message arrives in the channel (#33776)

With a channel open and its Webhooks window open from Edit Channel, every new message in that channel sent the window back to the webhook list, including a post from the webhook itself. The selected webhook closed and a changed name or image that was not saved yet was lost. The window now resets only when it opens, so new messages no longer interrupt an edit.

Fixes #33775
This commit is contained in:
Classic298 authored and GitHub committed 2026-11-06 08:20:18 +09:00
1 parent c384d8e514
commit b8b8ba9586
1 file changed
+1 -1
@@ -87,7 +87,7 @@
showDeleteConfirmDialog = false;
};
$: if (show && channel) {
$: if (show) {
loadWebhooks();
selectedWebhookId = null;
pendingChanges = {};