mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
bankruptcy: Fix clicking outside bankruptcy modal.
Previously, this would leave the unread UI disabled forever, showing 0 unread counts for anything, which was a super confusing failure mode.
This commit is contained in:
@@ -94,7 +94,8 @@ function consider_bankruptcy() {
|
||||
}
|
||||
|
||||
exports.initialize = function initialize() {
|
||||
$(".bankruptcy_button").click(function () {
|
||||
// No matter how the bankruptcy modal is closed, show unread counts after.
|
||||
$("#bankruptcy").on("hide", function () {
|
||||
unread_ui.enable();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user