mirror of https://github.com/zulip/zulip.git
update_floating_recipient_bar: Don't loop infinitely if no message selected.
(imported from commit a75cfd41ed8a8ce5256d1caa29f6c5bc0689e7d2)
This commit is contained in:
parent
fdba3addc8
commit
b0406ee1d2
|
@ -170,6 +170,9 @@ function update_floating_recipient_bar() {
|
|||
// row is at least partially occluded by our box.
|
||||
// Start with the pointer's current location.
|
||||
var candidate = selected_message;
|
||||
if (candidate === undefined) {
|
||||
return;
|
||||
}
|
||||
while (true) {
|
||||
candidate = candidate.prev();
|
||||
if (candidate.length === 0) {
|
||||
|
|
Loading…
Reference in New Issue