mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
js: Rename viewport.js to message_viewport.js.
This fixes the mobile web experience for Chrome on iOS. Apparently, Chrome-on-iOS silently has a `viewport` module that overrides and user-defined module by that name, causing all of our code that accesses the viewport module to not work on that platform. We fix this by renaming it.
This commit is contained in:
@@ -135,11 +135,11 @@ exports.process_visible = function process_visible() {
|
||||
}
|
||||
|
||||
if (feature_flags.mark_read_at_bottom) {
|
||||
if (viewport.bottom_message_visible()) {
|
||||
if (message_viewport.bottom_message_visible()) {
|
||||
exports.mark_current_list_as_read();
|
||||
}
|
||||
} else {
|
||||
exports.mark_messages_as_read(viewport.visible_messages(true));
|
||||
exports.mark_messages_as_read(message_viewport.visible_messages(true));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user