mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
settings: Fix downloading zuliprc files with hidden emails.
With EMAIL_ADDRESS_VISIBILITY_NOBODY (or as a non-admin with EMAIL_ADDRESS_VISIBILITY_HIDDEN), we were incorrectly generating zuliprc files containing the shareable email address, which naturally didn't work.
This commit is contained in:
@@ -316,7 +316,7 @@ exports.set_up = function () {
|
|||||||
$("#download_zuliprc").on("click", function () {
|
$("#download_zuliprc").on("click", function () {
|
||||||
const bot_object = {
|
const bot_object = {
|
||||||
user_id: people.my_current_user_id(),
|
user_id: people.my_current_user_id(),
|
||||||
email: people.my_current_email(),
|
email: page_params.delivery_email,
|
||||||
api_key: $("#api_key_value").text(),
|
api_key: $("#api_key_value").text(),
|
||||||
};
|
};
|
||||||
const data = settings_bots.generate_zuliprc_content(bot_object);
|
const data = settings_bots.generate_zuliprc_content(bot_object);
|
||||||
|
|||||||
Reference in New Issue
Block a user