Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose_notifications: Make the selector more robust.

Aman Agrawal17ce945faa3e
diff --git a/web/src/compose_notifications.ts b/web/src/compose_notifications.ts
index e23aefbd561..ec803ca2ef6 100644
--- a/web/src/compose_notifications.ts
+++ b/web/src/compose_notifications.ts
@@ -419,7 +419,7 @@ export function reify_message_id(opts: {old_id: number; new_id: number}): void {
// If a message ID that we're currently storing (as a link) has changed,
// update that link as well
- for (const e of $("#compose_banners a")) {
+ for (const e of $("#compose_banners [data-message-id]")) {
const $elem = $(e);
const message_id = Number($elem.attr("data-message-id"));