mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 23:19:10 +00:00
Make MessageList.selected_id an accessor method
(imported from commit 144d12ba8be2de02900ef06c3413f660144de8bf)
This commit is contained in:
@@ -21,7 +21,7 @@ function show(tabname, focus_area) {
|
||||
$('.message_comp').slideDown(100, function () {
|
||||
// If the compose box is obscuring the currently selected message,
|
||||
// scroll up until the message is no longer occluded.
|
||||
if (current_msg_list.selected_id === -1) {
|
||||
if (current_msg_list.selected_id() === -1) {
|
||||
// If there's no selected message, there's no need to
|
||||
// scroll the compose box to avoid it.
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user