mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +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 () {
|
||||
const bot_object = {
|
||||
user_id: people.my_current_user_id(),
|
||||
email: people.my_current_email(),
|
||||
email: page_params.delivery_email,
|
||||
api_key: $("#api_key_value").text(),
|
||||
};
|
||||
const data = settings_bots.generate_zuliprc_content(bot_object);
|
||||
|
||||
Reference in New Issue
Block a user