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.

channel_email: Fix copy email button not copying displayed text.

Prakhar Pratyushb382315f8271
diff --git a/web/src/stream_edit.ts b/web/src/stream_edit.ts
index 90fc2a7ba74..616401574d7 100644
--- a/web/src/stream_edit.ts
+++ b/web/src/stream_edit.ts
@@ -502,6 +502,11 @@ function show_stream_email_address_modal(address: string, sub: StreamSubscriptio
const email_address_clipboard = new ClipboardJS(
"#copy_email_address_modal .copy-email-address",
+ {
+ text() {
+ return $(".email-address").text();
+ },
+ },
);
email_address_clipboard.on("success", (e) => {
assert(e.trigger instanceof HTMLElement);