mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
inbox: Fix inbox scrolled to top when returning from other narrows.
This has to do with narrows and inbox view sharing the same scrolling container.
This commit is contained in:
@@ -719,12 +719,17 @@ export function toggle_resolve_topic(
|
||||
url: "/json/messages/" + message_id,
|
||||
data: request,
|
||||
success() {
|
||||
const $spinner = $row.find(".toggle_resolve_topic_spinner");
|
||||
loading.destroy_indicator($spinner);
|
||||
if ($row) {
|
||||
const $spinner = $row.find(".toggle_resolve_topic_spinner");
|
||||
loading.destroy_indicator($spinner);
|
||||
}
|
||||
},
|
||||
error(xhr) {
|
||||
const $spinner = $row.find(".toggle_resolve_topic_spinner");
|
||||
loading.destroy_indicator($spinner);
|
||||
if ($row) {
|
||||
const $spinner = $row.find(".toggle_resolve_topic_spinner");
|
||||
loading.destroy_indicator($spinner);
|
||||
}
|
||||
|
||||
if (xhr.responseJSON) {
|
||||
if (xhr.responseJSON.code === "MOVE_MESSAGES_TIME_LIMIT_EXCEEDED") {
|
||||
handle_resolve_topic_failure_due_to_time_limit(topic_is_resolved);
|
||||
|
||||
Reference in New Issue
Block a user