diff --git a/static/js/ui.js b/static/js/ui.js index df2083b798..c4b287b8d0 100644 --- a/static/js/ui.js +++ b/static/js/ui.js @@ -47,7 +47,8 @@ function update_message_in_all_views(message_id, callback) { } exports.show_error_for_unsupported_platform = function () { - if (/ZulipDesktop/.test(navigator.userAgent)) { + // Check if the user is using old desktop app + if (window.bridge !== undefined) { // We don't internationalize this string because it is long, // and few users will have both the old desktop app and an // internationalized version of Zulip anyway.