mirror of https://github.com/zulip/zulip.git
Change compose box only for going-forward topic changes.
(imported from commit 69de10fd9866acab2d12f15489c67eb9daab8d3d)
This commit is contained in:
parent
b8de1dd13f
commit
9a5289b96c
|
@ -251,7 +251,7 @@ exports.update_messages = function update_messages(events) {
|
||||||
var stream_name = stream_data.get_sub_by_id(event.stream_id).name;
|
var stream_name = stream_data.get_sub_by_id(event.stream_id).name;
|
||||||
var compose_stream_name = compose.stream_name();
|
var compose_stream_name = compose.stream_name();
|
||||||
|
|
||||||
if (stream_name && compose_stream_name) {
|
if (going_forward_change && stream_name && compose_stream_name) {
|
||||||
if (stream_name.toLowerCase() === compose_stream_name.toLowerCase()) {
|
if (stream_name.toLowerCase() === compose_stream_name.toLowerCase()) {
|
||||||
if (event.orig_subject === compose.subject()) {
|
if (event.orig_subject === compose.subject()) {
|
||||||
compose.subject(event.subject);
|
compose.subject(event.subject);
|
||||||
|
|
Loading…
Reference in New Issue