mirror of https://github.com/zulip/zulip.git
Fix narrowing by subject when selected message has different stream.
We had a bug where if the selected message had the same subject as the target message, but a different stream, narrowing by subject would narrow to that subject plus the selected message's stream rather than the target message's stream. (imported from commit 4b196342318a06d8aeea46bf05e3d7416ecb6c5b)
This commit is contained in:
parent
b1d1863604
commit
a0c60ba236
|
@ -838,7 +838,7 @@ $(function () {
|
||||||
$("#home").on("click", ".narrows_by_subject", function (e) {
|
$("#home").on("click", ".narrows_by_subject", function (e) {
|
||||||
var nearest = current_msg_list.get(rows.id($(this).closest(".recipient_row")));
|
var nearest = current_msg_list.get(rows.id($(this).closest(".recipient_row")));
|
||||||
var selected = current_msg_list.selected_message();
|
var selected = current_msg_list.selected_message();
|
||||||
if (nearest.subject === selected.subject) {
|
if (same_stream_and_subject(nearest, selected)) {
|
||||||
narrow.by_subject(selected.id);
|
narrow.by_subject(selected.id);
|
||||||
} else {
|
} else {
|
||||||
narrow.by_subject(nearest.id);
|
narrow.by_subject(nearest.id);
|
||||||
|
|
Loading…
Reference in New Issue